Color Blindness Simulator
Simulate how any color appears to people with different types of color vision deficiency. Enter a hex color code or use the color picker to test Protanopia, Deuteranopia, Tritanopia, Protanomaly, Deuteranomaly, Tritanomaly, Achromatopsia, and Achromatomaly. Includes a WCAG contrast ratio checker for accessibility testing. All calculations run entirely in your browser.
WCAG Contrast Checker
Key Features
Eight Color Vision Deficiency Types
This simulator covers all major categories of color vision deficiency in a single tool. It includes the three complete forms of color blindness: Protanopia (no red cones), Deuteranopia (no green cones), and Tritanopia (no blue cones). It also simulates the three partial anomalous trichromacy conditions: Protanomaly, Deuteranomaly, and Tritanomaly, where the affected cones are present but have shifted sensitivity. Finally, it covers Achromatopsia (complete absence of color vision) and Achromatomaly (severely reduced color perception). Each simulation uses color transformation matrices derived from published vision research to produce accurate results that reflect how a person with each condition would perceive the input color.
Built-in WCAG Contrast Checker
The integrated contrast checker lets you test any text and background color combination against the Web Content Accessibility Guidelines. It calculates the precise contrast ratio and evaluates it against four WCAG thresholds: AA Normal Text (4.5:1), AA Large Text (3:1), AAA Normal Text (7:1), and AAA Large Text (4.5:1). A live preview shows your text color rendered on your background color at both normal and large sizes so you can visually verify readability before committing to a color pair. This eliminates the need for a separate contrast testing tool and keeps all your accessibility checks in one place during the design process.
Click-to-Copy Color Values
Every simulated color card displays the transformed hex code and RGB values. Click any card to instantly copy the hex code to your clipboard, confirmed by a brief visual indicator. This is useful when you need to see exactly what hex value a color blind person would perceive and use that value elsewhere in your design tools or documentation. Combined with the random color generator and real-time simulation, you can rapidly audit entire color palettes for accessibility issues without switching between multiple tools or performing manual calculations.
Accurate Color Science
The simulation engine converts input colors from the standard sRGB color space to linear RGB before applying the transformation matrices. This linearization step is essential for accurate results because sRGB values use a gamma curve that distorts mathematical operations. After applying the color vision deficiency matrix, the result is converted back to sRGB with proper gamma encoding. The transformation matrices used in this tool are simplified implementations based on the research of Brettel, Vienot, and Mollon, which are the standard reference algorithms used in accessibility testing tools and academic literature on color vision simulation.
How to Use the Color Blindness Simulator
- Enter a color. Type a six-character hex code into the input field or use the native color picker to select a color visually. You can also click the Random Color button to generate a random hex value for quick exploration. The original color and its hex and RGB values appear in the preview area above the simulation grid.
- View the simulations. Click the Simulate button or simply change the color input to see how your color appears across all eight types of color vision deficiency. Each card in the grid shows the simulated color swatch, the condition name and type, and the resulting hex and RGB values. Compare the simulated swatches against the original to identify which conditions cause the most significant color shifts.
- Copy simulated values. Click any simulation card to copy its hex code to your clipboard. A brief confirmation overlay appears on the swatch. Use these values to document how your brand colors or UI palette appear to users with different types of color blindness.
- Check contrast ratios. Scroll to the WCAG Contrast Checker section. Enter your text color and background color using hex codes or the color pickers, then click Check Contrast. The tool displays the exact contrast ratio and shows pass or fail badges for WCAG AA and AAA at both normal and large text sizes. Use this to verify your color pairs meet accessibility requirements.
Approximately 8% of men and 0.5% of women have some form of color vision deficiency. Never rely on color alone to convey information — always pair color with text labels, icons, patterns, or shape differences to ensure accessibility.
Using red and green to indicate success and error states. This is the most common form of color blindness (deuteranopia). Instead, pair colors with icons — a checkmark for success and an X for errors — so the meaning is clear regardless of color perception.
Understanding Color Blindness and Accessible Design
Color vision deficiency encompasses a range of conditions where the eye's cone photoreceptors do not function normally. The human retina contains three types of cone cells, each sensitive to a different range of wavelengths: L-cones (long wavelength, peaking near red), M-cones (medium wavelength, peaking near green), and S-cones (short wavelength, peaking near blue). When one type of cone is absent or has shifted sensitivity, the brain receives an incomplete signal and cannot distinguish certain colors that appear different to people with typical trichromatic vision. The most common forms involve the L-cones and M-cones, leading to red-green confusion, while S-cone deficiencies cause blue-yellow confusion.
For designers and developers, understanding these conditions is not optional. Approximately one in twelve men and one in two hundred women have some form of color vision deficiency. That means any website or application with a meaningful user base will have visitors who perceive colors differently than the designer intended. If a dashboard uses red and green to indicate failure and success without any secondary indicator, a significant percentage of users will be unable to distinguish between the two states. Similarly, if a navigation element relies on a subtle color change for its hover state, that change may be invisible to users with certain conditions. These are not edge cases but routine accessibility failures that affect millions of people worldwide.
The principle of inclusive design requires that color should never be the sole means of conveying information. Pair color with text labels, icons, patterns, or shape differences so that the information remains accessible regardless of how the user perceives color. Status indicators should combine color with icons such as checkmarks and crosses. Charts and graphs should use patterns or direct labels in addition to color coding. Form validation errors should include descriptive text alongside the red highlight. These practices benefit not only users with color vision deficiency but also users in challenging lighting conditions, those using monochrome displays, and anyone who prints a web page in grayscale.
The WCAG contrast ratio is a complementary metric that measures the luminance difference between two colors. Even if two colors are distinguishable in hue, they may fail to provide adequate contrast if their lightness values are too similar. The contrast ratio formula uses relative luminance, which accounts for the human eye's greater sensitivity to green light compared to red and blue. A ratio of 1:1 indicates no contrast (identical colors), while 21:1 is the maximum (black on white). Meeting the WCAG AA threshold of 4.5:1 for normal text ensures readability for the majority of users, including those with moderate low vision. The stricter AAA threshold of 7:1 provides an additional safety margin for users with more significant visual impairments.
Common Questions
What is color blindness and how common is it?
Color blindness, or color vision deficiency, is a condition where a person cannot perceive certain colors or cannot distinguish between colors that appear different to people with typical vision. It affects roughly 8 percent of men and 0.5 percent of women of Northern European descent, though the prevalence varies across different populations and ethnic groups. The most common forms are red-green deficiencies, which include Protanopia, Deuteranopia, Protanomaly, and Deuteranomaly. Blue-yellow deficiency (Tritanopia and Tritanomaly) and total color blindness (Achromatopsia) are significantly rarer. Most cases are inherited through a gene on the X chromosome, which explains why men are affected far more frequently than women. Acquired color vision deficiency can also develop later in life due to aging, certain medications, or eye and neurological conditions.
What is the difference between Protanopia and Deuteranopia?
Protanopia and Deuteranopia are both forms of dichromacy that cause red-green color confusion, but they result from the loss of different photoreceptor types. Protanopia occurs when the L-cones (red-sensitive) are completely absent, causing the entire red end of the spectrum to appear dark and reducing the visible spectrum at the long-wavelength end. Deuteranopia occurs when the M-cones (green-sensitive) are absent. While both conditions make it difficult to distinguish reds from greens, Protanopia tends to make reds appear darker and more muted because the missing L-cones would normally respond to longer wavelengths. Deuteranopia shifts mid-spectrum colors but does not darken the red end as dramatically. In everyday life, both types cause similar challenges, such as confusing traffic light colors, difficulty reading color-coded information, and inability to see certain color contrasts in digital interfaces.
How does a color blindness simulator work?
A color blindness simulator transforms input colors using mathematical matrices that model the effect of missing or altered cone photoreceptors. The process begins by converting the sRGB color value to linear RGB space using an inverse gamma function, because color operations must be performed on linear values to produce physically accurate results. Next, the simulator applies a 3x3 color transformation matrix specific to each type of color vision deficiency. These matrices are derived from the Brettel, Vienot, and Mollon research, which characterized how the human visual system processes color signals when one or more cone types are absent or abnormal. After the matrix multiplication, the resulting linear RGB values are converted back to sRGB with gamma encoding. The anomalous trichromacy types (Protanomaly, Deuteranomaly, Tritanomaly) use a blend between the normal and dichromatic matrices, reflecting the partial rather than complete loss of cone function.
What is Tritanopia and how does it differ from red-green color blindness?
Tritanopia is a blue-yellow color vision deficiency caused by the complete absence of S-cones (short-wavelength or blue-sensitive photoreceptors). Unlike Protanopia and Deuteranopia, which affect the ability to distinguish between red and green hues, Tritanopia impairs the ability to distinguish between blue and yellow, and between blue and green. People with Tritanopia typically perceive the world in shades of pink and teal. It is extremely rare, affecting fewer than 1 in 10,000 people. Another important distinction is that Tritanopia is not sex-linked; the gene responsible is on chromosome 7 rather than the X chromosome, so it occurs at roughly equal rates in men and women. Designers should be aware of Tritanopia when using blue-based color schemes or blue-yellow contrasts, as these combinations may be indistinguishable to affected users.
What are the WCAG contrast ratio requirements for accessibility?
The Web Content Accessibility Guidelines (WCAG) specify minimum contrast ratios between text and its background to ensure readability. WCAG 2.1 Level AA requires a contrast ratio of at least 4.5:1 for normal text (below 18 point or below 14 point bold) and 3:1 for large text (18 point and above, or 14 point bold and above). Level AAA raises the bar to 7:1 for normal text and 4.5:1 for large text. The contrast ratio is calculated from the relative luminance of the two colors using the formula (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color's luminance and L2 is the darker. These requirements apply to both body text and user interface components like buttons and form labels. Non-text elements such as icons and graphical objects require a minimum 3:1 contrast against adjacent colors under WCAG 2.1 Success Criterion 1.4.11.
How can I make my designs accessible for color blind users?
The most important principle is to never use color as the only means of conveying information. Pair color indicators with text labels, icons, patterns, or shape differences so that meaning is preserved for users who cannot perceive the color difference. For example, use a checkmark icon with green for success and a cross icon with red for errors, rather than relying on color alone. Choose a color palette that maintains distinguishability across common types of color vision deficiency by testing it with a simulator. Blue and orange are generally safe contrasting colors because they remain distinct for most forms of color blindness. Ensure all text meets WCAG contrast ratio requirements against its background. Use underlines or other non-color indicators for hyperlinks. In charts and data visualizations, add direct labels or use textures and patterns in addition to color coding.
What is Achromatopsia and how rare is it?
Achromatopsia, also known as rod monochromacy or total color blindness, is a condition in which none of the cone photoreceptors function. People with Achromatopsia perceive the world entirely in shades of gray and have no color vision at all. It is extremely rare, estimated to affect between 1 in 30,000 and 1 in 50,000 people worldwide, though it is more prevalent in certain isolated populations such as the island of Pingelap in Micronesia. In addition to the complete loss of color perception, Achromatopsia typically causes extreme sensitivity to light (photophobia), significantly reduced visual acuity (often 20/200 or worse), and involuntary rhythmic eye movements called nystagmus. Achromatomaly is a milder variant where some residual cone function exists, allowing for severely limited but not entirely absent color discrimination.
Types of Color Vision Deficiency
Color vision deficiency (commonly called color blindness) affects approximately 8% of men and 0.5% of women of Northern European descent. It occurs when one or more types of cone photoreceptors in the retina are absent or function abnormally. Understanding the specific types helps designers create interfaces that are accessible to all users.
Protanopia
~1.3% of malesAffected cones: L-cones (long wavelength / red)
People with protanopia cannot perceive red light. Reds appear dark or brownish, and red-green distinctions are lost entirely. Red traffic lights may appear dim or nearly black. Orange and green can look identical. This is one of the two most common forms and is inherited as an X-linked recessive trait, which explains why it predominantly affects males.
Deuteranopia
~1.2% of malesAffected cones: M-cones (medium wavelength / green)
The most common form of color blindness. People with deuteranopia lack functioning green cones, making it difficult to distinguish green from red and certain shades of brown, orange, and yellow. Unlike protanopia, reds do not appear abnormally dark. The two conditions are collectively called "red-green color blindness" and together account for over 99% of inherited color vision deficiency.
Tritanopia
~0.01% of populationAffected cones: S-cones (short wavelength / blue)
An extremely rare form where blue-sensitive cones are absent. Blues and yellows become difficult to distinguish, while reds and greens are perceived normally. Unlike red-green deficiency, tritanopia is not X-linked: it is inherited as an autosomal dominant trait and affects males and females equally. It can also be acquired through aging, optic nerve disease, or certain medications.
Achromatopsia
~0.003% of populationAffected cones: All three types (complete)
Total color blindness where no cone photoreceptors function. The world is perceived entirely in shades of gray. Achromatopsia also causes extreme light sensitivity (photophobia), reduced visual acuity (often 20/200), and involuntary eye movements (nystagmus). It is estimated to affect roughly 1 in 30,000 people worldwide, though prevalence is significantly higher on certain Pacific islands due to founder effects.
For designers, the practical takeaway is to never use color alone to convey critical information. Always supplement color coding with text labels, icons, patterns, or other non-color indicators. This tool helps you preview how your designs appear under each type of color vision deficiency so you can identify and fix accessibility issues before your users encounter them.