Color Converter
Convert any color between HEX, RGB, HSL, HWB, OKLCH, Lab, and CMYK, with shades, tints, and color harmonies.
Check whether your text and background colors meet WCAG AA and AAA contrast requirements, and get passing alternatives. Free, private, and 100% in your browser.
Read as HEX
Read as HEX
Contrast ratio
4.83:1
Good: passes AA
AANormal text
Under 24 px, or under 18.66 px bold · 4.5:1
AALarge text
24 px and up, or 18.66 px bold · 3:1
AAANormal text
Enhanced contrast · 7:1
AAALarge text
Enhanced contrast · 4.5:1
AAUI components & graphics
Icons, input borders, focus rings (1.4.11) · 3:1
APCA Lc 73.6(WCAG 3 draft, informational)
Fine for large or bold text and content you do not read for long
Large heading text
Bold text at 18.66 px counts as large
Body text at 16 px. The quick brown fox jumps over the lazy dog. Readable contrast helps people with low vision, older users, and everyone reading on a phone in sunlight.
Small print at 12 px is the hardest to read.
Same hue and chroma, adjusted lightness (OKLCH), on this background.
About one in twelve men has some form of color vision deficiency, and many more people read on dim screens or in bright sunlight. Sufficient contrast between text and its background is one of the simplest and most important accessibility requirements, and a common finding in accessibility audits.
Pass or fail for AA and AAA normal and large text (1.4.3, 1.4.6) and for UI components and graphics (1.4.11).
Get the closest text color that passes AA or AAA, keeping your hue, and apply it with one click.
See headings, body text, small print, a button, an icon, and a link in your colors.
The Lc value from APCA, the contrast method proposed for WCAG 3, with usage guidance.
Semi-transparent colors are blended the way the browser paints them before the ratio is calculated.
Enter HEX, RGB, HSL, OKLCH, or color names, or use the color pickers.
Level AA requires at least 4.5:1 for normal text and 3:1 for large text (24 px, or 18.66 px bold) and for UI components and graphics. Level AAA requires 7:1 for normal text and 4.5:1 for large text. Most laws and accessibility policies reference level AA.
WCAG computes the relative luminance of both colors (a weighted sum of their linearized red, green, and blue values) and divides the lighter one plus 0.05 by the darker one plus 0.05. Ratios range from 1:1 (same color) to 21:1 (black on white).
WCAG thresholds are exact: a ratio must be at least 4.5, and rounding up is not allowed. This checker never rounds a failing ratio up to a passing one.
APCA (Accessible Perceptual Contrast Algorithm) is a newer contrast model proposed for WCAG 3. It accounts for text being lighter or darker than the background and for font size and weight. It is shown for information; WCAG 2.x ratios are still the legal standard.
Convert any color between HEX, RGB, HSL, HWB, OKLCH, Lab, and CMYK, with shades, tints, and color harmonies.
Shrink SVG files by removing Figma, Illustrator, and Inkscape leftovers, rounding numbers, and minifying path data.
Beautify, minify, and validate JSON instantly with exact line and column error reporting.
Compare two JSON documents side by side and see every added, removed, and changed value.