Browser-based accessibility check · nothing is uploaded

Color Blindness Simulator

Drop in a chart, logo, UI screenshot or photo and see it as people with protan, deutan or tritan colour vision, or with no colour vision, would see it. The maths runs in linear light with the published Machado 2009 matrices, so you can set how strong the deficiency is.

Image

PNG, JPG, WEBP, GIF or BMP up to 25.00 MB. You can also paste with Ctrl+V.

Drop an image here, click to choose, or paste one

Everything is processed in this tab; the picture is never uploaded.

Color Blindness Simulator

Operator: Abdulla Al Fahad. How tools are built and checked

About one man in twelve and one woman in two hundred has some form of colour vision deficiency, and the most common kinds make reds, greens and browns hard to separate. A chart that uses red for bad and green for good, or a map that uses two similar greens for two regions, can be unreadable to them while looking perfectly clear to the person who designed it. This simulator shows the picture the way those viewers are likely to see it, so you can find the problem before it ships.

You supply an image: a screenshot, a chart export, a logo, a photo. The page shows the original and four simulations at once and lets you set how strong the deficiency is.

Key features

  • Original plus protan, deutan, tritan and achromatopsia side by side in a responsive grid
  • Severity from 0 to 100 percent in tenths, using the Machado, Oliveira and Fernandes 2009 matrices
  • Conversion through linear light, not the stored gamma-encoded values
  • A comparison slider between the original and any one simulation
  • A separate PNG download for each simulation at up to 4096 px
  • Paste from the clipboard, drag and drop, or choose a file

Cone types, severity steps and how the colours are converted

Input is a PNG, JPG, WEBP, GIF or BMP up to 25 MB and 50 megapixels, chosen, dropped or pasted with Ctrl+V. Files are recognised from their header bytes rather than the extension. A GIF is simulated at its first frame, and HEIC files are refused with a request to export them as JPG first.

Four kinds are shown. Protan is the deficiency in the long-wavelength (red) cones, deutan the medium-wavelength (green) cones, and tritan the short-wavelength (blue) cones. At 100 percent severity the cone class is treated as missing, giving protanopia, deuteranopia and tritanopia; at lower severities it is present but shifted, which the labels switch to protanomaly, deuteranomaly and tritanomaly. Achromatopsia is the fourth card: all colour is lost and only brightness remains.

Severity moves in steps of 10 percent from 0 to 100, because the source paper tabulates ten matrices for each of the three cone types. At 0 percent the image is unchanged. There are therefore 30 published matrices in use, plus a computed one for achromatopsia, and the code checks that each row of every matrix sums to 1 so that neutral greys stay neutral.

The on-screen cards use a copy of your image reduced to at most 800 pixels on its longest side so the slider responds immediately. Download PNG recomputes the simulation from the full image, scaled down only when its longest side is above 4096 pixels, and the status line states the saved size. The PNG keeps the original's transparency, because only the colour channels are changed.

How it works

Stored sRGB values are not proportional to light. A pixel at 128 out of 255 emits only about a fifth of the light of a pixel at 255. The colour vision model, however, describes how the three cone types respond to light, so each pixel is first converted to linear light using the sRGB transfer function (a 256-entry lookup table). The 3 by 3 matrix is applied there, negative or above-one results are clamped to the 0 to 1 range, and the result is converted back to sRGB through a 4096-entry table.

The matrices come from Machado, Oliveira and Fernandes, who modelled the shift of cone sensitivity peaks to produce a matrix per severity. Because each row sums to 1, white and grey map to themselves. Alpha is copied across untouched.

Achromatopsia is not in that paper's tables. It is computed here as a blend between the image and its relative luminance, Y = 0.2126 R + 0.7152 G + 0.0722 B in linear light. At 100 percent every pixel becomes the grey of that luminance, and lower severities mix grey and colour in proportion, which is how achromatomaly is usually approximated.

When to use it

  • Checking that the red, amber and green indicators in a dashboard screenshot can still be told apart
  • Testing a line chart that uses six colours for six series, to see which pairs merge
  • Reviewing a logo or a brand palette before it goes into print
  • Showing a team or a class how a map legend looks to a colleague with deuteranopia

Inputs

  1. Choose an image, drop one on the box, or paste a screenshot with Ctrl+V.
  2. Leave severity at 100 percent to see the strongest effect, then lower it to see the milder anomalous forms.
  3. Look at each card for places where two colours that you meant to be different now look alike.
  4. Press Compare on a card to wipe between the original and that simulation for a closer look.
  5. Download the PNG of any simulation to attach to a design review or an accessibility report.

Worked example

Two status colours, pure red (255, 0, 0) and mid green (0, 128, 0), at 100 percent severity

red   = rgb(255, 0, 0)
green = rgb(0, 128, 0)

Result in each simulation

Protanopia     red 109, 95, 0     green 131, 114, 0
Deuteranopia   red 163, 144, 0    green 119, 106, 24
Tritanopia     red 255, 0, 15     green 0, 124, 108
Achromatopsia  red 127, 127, 127  green 109, 109, 109
Under deuteranopia both become dull yellow-brown, 163,144,0 against 119,106,24, and differ mostly in lightness. That is the classic red and green pairing that fails.

Tips for best results

  • Do not rely on colour alone. If two simulated colours look alike, add a pattern, a label or a different shape rather than only choosing another hue.
  • Differences in lightness survive almost every kind of colour deficiency. Making two colours clearly lighter and darker than each other is the safest fix.
  • Check the deuteran card first; deuteranomaly is the most common form, and protan results are usually close to it.
  • Test at 100 percent and again around 50 to 60 percent. Many real viewers sit in the middle, and a design that fails only at full strength may still be a risk.
  • Blue and yellow pairs are safest for red-green deficiencies, but check them on the tritan card because tritanopia attacks exactly that pair.

Limits

This is a model of an average person with the chosen deficiency, not a measurement of any individual. Real people differ, and the paper's matrices are an approximation.

Your own monitor, its colour profile and night-mode filters change what you see. The simulation is computed for sRGB, and a wide-gamut screen without colour management can shift the result.

Severity moves only in tenths. A value between two steps, such as 55 percent, is not available.

Only the first frame of a GIF is shown, and the saved PNG is a still image.

Images above 4096 px on the longest side are scaled down for download. The preview cards are smaller still, so judge fine detail from the saved file.

It does not test text contrast. A pair can look different and still fail a contrast ratio, so check contrast separately as well.

Best practices

  • Run the check on the final exported image, not on a flat colour swatch, because anti-aliasing and gradients change how colours meet.
  • Keep the downloaded PNGs with the design file so reviewers can see what was tested.
  • Pair this check with a contrast check on text, because they catch different faults.

Dichromacy and anomalous trichromacy

A person with normal colour vision has three cone types. In dichromacy one type is absent, which removes one axis of colour and collapses many hues together. In anomalous trichromacy all three types are present, but one responds at a shifted wavelength, so the person still sees three axes but with reduced contrast along one of them. The severity slider moves between those: 100 percent is the dichromat, and each lower step shifts the matrix back towards the identity.

The slider does not describe a clinical grade. It is a position along the model's range, and two people with the same diagnosis can fall at different places on it.

Why linear light matters

If the matrix were applied directly to the stored values, mid-tones would come out too dark or too saturated, because the stored values are compressed by a gamma curve. Converting to linear light first means the arithmetic acts on quantities that are proportional to the light reaching the eye, which is what the cone model assumes. The effect is most visible in mid-greys and in gradients.

A neutral grey such as 128, 128, 128 stays exactly 128, 128, 128 in every simulation, which is a quick way to confirm that the conversion is balanced.

Frequently asked questions

Is my image uploaded?

No. The image is decoded and recoloured in this tab with your browser's canvas, and it is not sent anywhere.

Why are the colours not an exact match for another simulator?

Different tools use different models, such as Brettel and Viénot or Machado, and some apply the matrix to gamma-encoded values. This page uses the Machado 2009 matrices in linear light, so small differences from other tools are expected.

Does this show what a person with colour blindness really sees?

It shows a published approximation for an average person, which is useful for finding colour pairs that merge. It cannot capture one individual's vision, so treat it as a screening aid, not proof of accessibility.