Color Blindness Simulator
The Color Blindness Simulator shows your colours and images the way protanopia, deuteranopia, tritanopia and achromatopsia see them — Machado et al. (2009) matrices, a severity slider for the milder forms, pair-separation scores, and a PNG download, all local.
How to Use
- 1
Enter two colours — for example error red #DC2626 and success green #16A329 — or click Load the red/green example. Hex, rgb() and hsl() all work.
- 2
Read the table: the original pair plus what it looks like under protanopia, deuteranopia, tritanopia and achromatopsia, each with a separation score (0–442). A score that collapses to under half the normal-vision score is flagged.
- 3
Drag the severity slider below 100% to check anomalous trichromacy — the milder, far more common condition, where a cone is shifted rather than missing. At 100% the model shows full dichromacy.
- 4
Upload a UI mockup or screenshot to see the whole image under all four vision types at once — it is processed on a canvas in this tab and never uploaded — and download any simulated version as a PNG.
- 5
Check the WCAG contrast reminder next to the table: simulation does not measure contrast, so a pair that survives simulation can still fail WCAG — test the ratio in the WCAG Contrast Checker.
- 6
If a pair collapses, fix it by adding a non-colour cue — an icon, a label, or a pattern — instead of picking a slightly different shade of the same failing hue.
Frequently Asked Questions
What is color blindness?
What is the difference between protanopia, deuteranopia and tritanopia?
How common is color blindness?
Does this diagnose color blindness?
What is the Machado 2009 model?
What does the severity slider do?
Does simulation replace contrast checking?
What does the separation number mean?
Is my image uploaded anywhere?
My pair passes simulation — is my design accessible?
Generative Answer & AI Documentation
What is the Color Blindness Simulator?
The Color Blindness Simulator takes one colour or a pair of colours — or a whole uploaded image — and shows what each looks like under four types of colour vision deficiency: protanopia (no red cones), deuteranopia (no green cones), tritanopia (no blue cones), and achromatopsia (no colour vision), next to the original for comparison. The simulation uses the Machado et al. (2009) model: each colour is converted from sRGB to linear light, multiplied by a fixed 3×3 matrix per CVD type, and converted back to sRGB. A severity slider from 0% to 100% blends the matrix toward the original colour, modelling anomalous trichromacy — the milder, far more common condition — instead of only full dichromacy. For a colour pair the page also shows a separation score per vision type: the straight-line distance between the two colours in RGB space, so you can see numerically which pairs collapse instead of only eyeballing swatches. Image mode reads a mockup or screenshot with FileReader, processes it pixel-by-pixel on a canvas in the tab, and offers each simulated version as a PNG download. A WCAG contrast reminder sits next to the table, because simulation does not measure contrast.
Why use Color Blindness Simulator offline?
About 1 in 12 men and about 1 in 200 women have some colour vision deficiency, and the most common design failure is also the most invisible to the person who made it: red vs green as the only signal. Error red vs success green, up vs down, buy vs sell — to a deuteranope those two colours can be nearly the same, and the designer, who sees them clearly apart, never notices. The failure is cheap to prevent and expensive to discover in production: one check before shipping, against a named model, with a number attached. The number matters, because eyeballing is unreliable — two swatches that look distinct to you at a glance can still score a separation of 98.9 under protanopia against 234.2 with normal vision, which is what the worked example on this page shows. And the privacy story matters too: people upload real UI mockups and screenshots to simulators, and here the image never leaves the tab — a server-side simulator receives your unreleased design.
When should you use this tool?
Use it before shipping any colour-coded meaning: a red/green status pair, a chart with four or more series, a map with colour-coded regions, form validation states, or a full palette fresh from the Color Palette Generator. Use it when a chart legend relies on colour alone, and when a traffic-light indicator is the only thing telling the user something went wrong. Use the image mode on a real screenshot, not a single swatch — a pair that survives in isolation can still collapse inside a busy interface. Do not use it to diagnose your own vision (that needs Ishihara plates or an anomaloscope from an eye-care professional), and do not use a passing simulation as an accessibility certificate — it is one check among many, and contrast, keyboard access, and labels are separate.
Key Benefits
- All four types side by side — protanopia, deuteranopia, tritanopia, achromatopsia — plus the original, so the collapse is visible, not imagined.
- Pair-separation scores per vision type: a number for which pairs collapse, not just two swatches to squint at.
- Severity slider 0–100% for anomalous trichromacy — the milder form most colour-blind people actually have.
- Image mode: upload a mockup or screenshot, see all four simulations at once, download any of them as a PNG.
- Named, checkable model: Machado et al. (2009) matrices, applied on gamma-corrected linear light — not a naive channel swap.
- WCAG contrast reminder next to the simulation, with a link to the Contrast Checker — simulation is not a contrast check.
- Honest limits stated on the page: an average-observer approximation, not a diagnosis and not an audit.
- 100% private: colours and images are processed in the tab; nothing is uploaded, stored, or logged.
Common Use Cases
- Checking a red/green status pair before shipping: red #DC2626 vs green #16A329 scores 234.2 with normal vision, but 98.9 under protanopia, 134.8 under deuteranopia and 3.5 under achromatopsia — under total colour blindness the two are effectively the same grey (#838383 and #818181), so the pair needs an icon or a label, not a different shade of red.
- Checking a chart with four series: run the four series colours through the pair table two at a time — any pair whose separation collapses under deuteranopia will be unreadable in the legend for the most common form of CVD.
- Checking a full palette: generate the palette in the Color Palette Generator, then paste its colours in here two at a time — the palette page checks harmony, this page checks whether the harmony survives colour blindness.
- Checking a screenshot: upload the settings page, and the error banner, the success toast, and the warning callout appear under all four vision types at once — download the deuteranopia PNG and attach it to the design review.
- Calibrating judgement: the red under protanopia is #acab26 — an olive yellow, not a darker red — which is why 'just darken the red' does not fix a red/green pair; the hue itself moves.
Developer Notes & Best Practices
The pipeline is the one Machado et al. (2009) published, as implemented by the simulators this page was checked against: sRGB to linear light with the standard piecewise gamma decode (c/12.92 at or below 0.04045, otherwise ((c + 0.055)/1.055)^2.4), multiply by the 3×3 matrix for the CVD type, then encode back to sRGB. The matrices at full severity are: protanopia [[0.567, 0.433, 0], [0.558, 0.442, 0], [0, 0.242, 0.758]]; deuteranopia [[0.625, 0.375, 0], [0.7, 0.3, 0], [0, 0.3, 0.7]]; tritanopia [[0.95, 0.05, 0], [0, 0.433, 0.567], [0, 0.475, 0.525]]; achromatopsia is the Rec. 601 luminance row [0.299, 0.587, 0.114] on all three rows. Severity s blends each matrix row toward the identity: M' = (1 - s)·I + s·M, so 0% returns the original colour exactly and 100% is full dichromacy. Separation is the Euclidean distance between the two colours in RGB space (maximum about 441.7, black vs white). All numbers quoted on this page were computed by the same code the tool runs and verified in Node: the red/green example scores 234.2 normal, 98.9 protanopia, 134.8 deuteranopia, 203.4 tritanopia, 3.5 achromatopsia; red #DC2626 under protanopia is #acab26 and under achromatopsia #838383; the pair's WCAG contrast ratio is 1.45:1, red on white is 4.83:1, green on white is 3.33:1. Image mode draws the upload to a canvas downscaled to a maximum width of 640px and runs the same per-pixel function; the PNG download is that simulated preview, not the original file.
The four types — what is missing, what collapses
| Type | Missing cones | What collapses | How common |
|---|---|---|---|
| Protanopia | Red (L) cones | Red/green; reds look darker | About 1% of men |
| Deuteranopia | Green (M) cones | Red/green — the most common failure | About 1% of men |
| Tritanopia | Blue (S) cones | Blue/yellow | Rare |
| Achromatopsia | All colour vision | Everything — the world in greys | Very rare |
Worked example — red #DC2626 vs green #16A329 (separation 0–442)
| Vision type | Separation | Colour A looks like | Colour B looks like |
|---|---|---|---|
| Normal vision | 234.2 | #DC2626 | #16A329 |
| Protanopia | 98.9 — collapses | #acab26 | #70715b |
| Deuteranopia | 134.8 — collapses | #b4bd26 | #695f63 |
| Tritanopia | 203.4 | #d72626 | #2d7377 |
| Achromatopsia | 3.5 — identical | #838383 | #818181 |
Design rules that survive colour blindness
| Rule | Why it works |
|---|---|
| Never rely on colour alone | Add an icon, a label, or a pattern — the cue survives every vision type |
| Use lightness as well as hue | A dark red vs a light green stays distinguishable even in greyscale |
| Avoid red/green as the only pair | The most common deficiency collapses exactly this pair |
| Label chart series directly | A legend that needs colour matching fails; labels on the lines do not |
| Check at partial severity too | Most affected users have mild anomalous trichromacy, not full dichromacy |
- Check the pair you actually ship, at the severity that matches real users: 100% is full dichromacy, but most colour-blind people have the milder anomalous form — check 50–70% too.
- Check inside the real interface, not just two swatches: upload the screenshot, because a pair that survives in isolation can collapse against a busy background.
- Fix a collapsing pair with a non-colour cue first: an icon, a label, or a pattern survives every vision type, while a slightly different shade of the same hue usually does not.
- Use lightness differences deliberately: a dark colour vs a light colour stays distinguishable in greyscale, where two mid-tone colours of different hues do not.
- Check every state, not just the default: error, success, warning, disabled, and focus states each carry their own colours.
- Run the contrast check separately: a pair can survive simulation and still fail WCAG — test the ratio in the WCAG Contrast Checker on this site.
Common Mistakes
- Testing only at 100% severity: most colour-blind users have mild anomalous trichromacy, so a design that fails at 100% may be fine in practice — and one that passes at 100% is over-tested. Check partial severity too.
- Assuming a channel swap is a simulation: swapping red and green channels is not the Machado model — it produces colours no human sees. This page uses the published matrices on gamma-corrected linear light.
- Fixing a collapse by darkening one colour: under protanopia the red #DC2626 becomes #acab26, an olive yellow — the hue itself moves, so a darker red is still the wrong colour. Add a non-colour cue instead.
- Checking one pair and calling the palette done: a palette has many pairs, and the pair that collapses is rarely the one you tested first — check each combination you actually use.
- Treating simulation as a contrast check: red vs green at 1.45:1 has almost no luminance contrast, which is a separate failure from the hue collapse — check the ratio in the Contrast Checker.
- Claiming a site is accessible because it passes simulation: simulation is one check. Contrast, keyboard access, focus visibility, and labels are separate, and none of them is covered here.
Limitations
This page simulates an average observer with the Machado et al. (2009) model — it is an approximation, not a diagnosis and not an accessibility audit. Real colour vision varies person to person, and screens vary too, so a simulation that looks fine on your monitor may not match what a particular user sees. Tritan (blue–yellow) simulation is the least reliable, because screens reproduce blues and yellows least consistently. Simulation does not measure contrast: a pair can survive simulation and still fail WCAG, and a pair can pass WCAG and still collapse here. Passing simulation does not certify a site as accessible — keyboard access, focus order, alt text, and heading structure are separate checks. Image mode downscales uploads to a maximum width of 640px for the preview, so the downloaded PNG is the simulated preview, not a full-resolution render. The separation score is a Euclidean distance in RGB space, which is a guide, not a perceptual (ΔE) measure.
Structured Input/Output Example
Colour A #DC2626 (error red), Colour B #16A329 (success green), severity 100%
Normal vision separation: 234.2 Protanopia separation: 98.9 — red looks like #acab26 Deuteranopia separation: 134.8 — green looks like #695f63 Tritanopia separation: 203.4 — red looks like #d72626 Achromatopsia separation: 3.5 — both look like grey (#838383) WCAG contrast of the pair: 1.45:1
Related Tools
Color Palette Generator
Color palette generator: one base color in — a 5-color harmony palette plus a 50–950 Tailwind scale. Lock, shuffle, copy HEX/RGB/HSL, export CSS or JSON.
WCAG Contrast Checker
WCAG contrast checker: check any foreground/background pair for AA and AAA — normal, large text and non-text UI — with a live preview and a one-click fix.
Color Converter
Color converter: translate colors between HEX, RGB, HSL and OKLCH with a live preview swatch. Type a hex code or pick visually, then copy clean CSS.
HEX to RGB Converter
Hex to RGB converter: turn any hex color code into red, green, and blue channel values. Handles 3-digit, 6-digit, and 8-digit hex with alpha.