Color Blind Friendly Palette

Check text contrast for every color pair and preview the palette in three color vision simulations.

Enter 2–8 hex colors, one per line or separated by commas.

Presets

Screen calibration can change how swatches appear.

Palettes to try

The Okabe–Ito preset comes from a palette its authors proposed to make colors easier to tell apart across different types of color vision. Okabe and Ito’s Color Universal Design guide. Pair chart colors with labels or shapes.

How the contrast ratio is calculated

For each opaque sRGB color, divide each 8-bit channel by 255 to get c. Convert each normalized channel to linear light using c / 12.92 if c is at or below 0.04045 and ((c + 0.055) / 1.055)2.4 otherwise. Relative luminance is L = 0.2126R + 0.7152G + 0.0722B, using the linear channels.

Divide Llighter + 0.05 by Ldarker + 0.05. WCAG Level AA sets a minimum of 4.5:1 for regular text and 3:1 for large text, with exceptions such as logotypes. Large generally means at least 18 pt or 14 pt bold. W3C WCAG 2.2 contrast minimum. Those sizes are 24 CSS px and about 18.67 CSS px, respectively. W3C CSS length units.

Why black on white reaches 21:1

Black #000000 has a relative luminance of 0. White #ffffff has a relative luminance of 1. Their contrast ratio is (1 + 0.05) / (0 + 0.05) = 21:1, which meets both WCAG AA text thresholds.

Keep meaning visible

For a chart, pair colors with direct labels, distinctive line styles or marker shapes. For a form, use visible text such as “Required” or “Error” alongside any color cues. W3C guidance on use of color.

Text contrast uses the original colors. For the previews, this checker flags pairs whose simulated swatches are less than 0.02 apart in Oklab. That’s a similarity check using the just-noticeable difference threshold from W3C’s gamut-mapping method. How the color simulation works.