Dev TooloraLocal dev tools

> CSS & Design

Color Blindness Palette Simulator

Simulate protanopia, deuteranopia, tritanopia and achromatopsia on a palette and flag the pairs that become hard to tell apart.

Runs locallyWorks offline
Auto-run
Back to results
Input

Source data

%
Vision types
Output

Result

Your result will appear here.

Tool guide

About this tool.

  • Colors are converted to linear sRGB and multiplied by the Machado, Oliveira and Fernandes (2009) matrix for the chosen type and severity, with one matrix per 10% step. The result is clamped to 0-1 and encoded back to sRGB.
  • Achromatopsia mixes each linear channel toward the luminance Y = 0.2126 R + 0.7152 G + 0.0722 B by the severity.
  • A pair is flagged when its OKLab distance in a simulation is below 0.08. Pairs that are already below 0.08 in normal vision are flagged as close for everyone instead.

  • Checking a chart palette before it ships.
  • Finding red and green pairs that collapse for deuteranopia.
  • Choosing status colors that stay distinct without color alone.
  • Documenting accessibility checks for a design system.

Enter 2-12 opaque CSS colors separated by commas or new lines.

Pick a severity and at least one vision type.

The summary names up to five hard-to-tell pairs, and the table lists the simulated color of every palette entry for each type. Copy or Save gives the full text with every flagged pair and its normal and simulated distances.

The preview has one row per color and one column per view. A cell that is hard to tell apart is outlined and names the other color, for example ≈2.

  • #2ca02c, #d62728 is flagged for deutan
  • #1f77b4, #ff7f0e has no flags
  • #ff0000 at 100% deutan becomes #a39000
  • #2563eb at 50% deutan becomes #0065ea
  • Severity 0 changes nothing, so distinct colors stay unflagged
  • rgb(37, 99, 235), tomato keeps the comma inside rgb() together

  • The palette needs 2-12 colors.
  • Commas inside rgb() or hsl() do not split.
  • Severity runs from 0 to 100 in steps of 10.
  • At least one vision type must be selected.
  • Distances are OKLab differences.
  • Alpha is rejected rather than ignored.

FAQ

Questions about Color Blindness Palette Simulator

What do protan, deutan and tritan mean?

Protan lacks red cones, deutan lacks green cones, tritan lacks blue cones.

What does severity change?

Anomalous trichromacy is partial, and achromatopsia is the absence of color vision.

Why are transparent colors rejected?

The simulation needs a solid color, so rgba() and similar values are rejected.

Is the result exact?

The model is an approximation, so treat the flags as a guide and test with users.

Continue with

Color Palette & ContrastKeep your exact base color, compare harmonic swatches and contrast on white/black, then export a palette as JSON and CSS variables.Color MixerMix two CSS colors by weight in sRGB or the perceptual OKLab spaces and get the color-mix() rule with a resolved fallback.