Color blindness duniya mein lagbhag 30 crore logon ko affect karta hai — roughly 8% men aur 0.5% women. Unke liye web mein invisible information bhari hoti hai: white background par red error messages, green aur yellow warnings jo same dikhte hain, data charts jahan sab bars ek jaise grey lagte hain. Ek color blindness simulator designers aur developers ko apna UI color vision deficiency (CVD) wale users ki nazariye se dekhne deta hai — real users ke saath encounter karne se pehle failures expose karta hai.
Is guide mein: color vision deficiency ki science, sab 8 CVD types ki explanation, Daltonization algorithm kaise kaam karta hai, WCAG 2.2 contrast requirements, NASA aur The Economist jaisi organizations ke color-blind safe palettes, testing workflow, aur real-world product failures jo accessible nahi the.
Apna Design Color Blindness Test Karo
Koi bhi UI screenshot upload karo aur 8 CVD types se dekho। Free, in-browser, koi data store nahi। Designers aur accessibility engineers ka trusted tool।
Color Blindness kya hai: Types, Prevalence aur Design pe Impact
Human color vision retina mein teen types ke cone cells par depend karta hai: S-cones (blue, ~420nm), M-cones (green, ~530nm) aur L-cones (red, ~560nm). Color blindness tab hoti hai jab ek ya zyada cone types absent, non-functional ya shifted hote hain.
Prevalence by Population
| Population | Red-Green CVD (Men) | Red-Green CVD (Women) |
|---|---|---|
| Northern European | 8% | 0.5% |
| Asian (East) | 5% | 0.4% |
| Global average | ~6% | ~0.4% |
Design mein Common Failures
- Red error aur green success states jo same dikhte hain
- Charts jahan sirf color se data series distinguish ki jaati hai
- Form validation jo sirf red border se indicate hoti hai
- Traffic light status indicators (red/yellow/green) dashboards mein
- CTA buttons jo sirf color ki wajah se "pop" karte hain
Color Vision Deficiency ke 8 Types
| Type | Category | Prevalence (Men) | Red kaise dikhta hai | Green kaise dikhta hai |
|---|---|---|---|---|
| Deuteranopia | Red-Green | 1% | Brownish-yellow | Brownish-yellow (SAME!) |
| Deuteranomaly | Red-Green | 5% | Slightly muted | More yellow-green |
| Protanopia | Red-Green | 1% | Dark brownish | Normal jaisa |
| Protanomaly | Red-Green | 1% | Darker, less vivid | Slightly different |
| Tritanopia | Blue-Yellow | 0.001% | Normal | Normal |
| Tritanomaly | Blue-Yellow | 0.01% | Normal | Normal |
| Achromatopsia | Total | 0.003% | Grey | Grey |
| Achromatomaly | Total (partial) | Rare | Muted | Muted |
Normal Vision: ● Red ● Green ← Clearly different
Deuteranopia: ● Brown ● Brown ← SAME! Ye problem hai.
# Common web colors deuteranopia mein:
#FF0000 (red error) → #8B8B00 (olive)
#00FF00 (green ok) → #8B8B00 (olive) ← Ek jaise!
#0000FF (blue info) → #0000FF ← Blue safe hai
Color Blindness Simulator kaise Kaam Karta Hai: Daltonization Algorithm
Color blindness simulators mathematical transformations use karte hain based on color-deficient vision ke physiological models par। Sabse widely used approach Brettel-Viénot-Mollon (1997) model par based hai।
Pipeline: sRGB → LMS → Simulate → sRGB
// Step 1: sRGB → Linear RGB (gamma correction remove karo)
function sRGBToLinear(c) {
return c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
}
// Step 2: Linear RGB → LMS (cone response space)
function rgbToLMS(r, g, b) {
return {
L: 0.31399022 * r + 0.63951294 * g + 0.04649755 * b,
M: 0.15537241 * r + 0.75789446 * g + 0.08670142 * b,
S: 0.01775239 * r + 0.10944209 * g + 0.87256922 * b,
};
}
// Step 3: Deuteranopia simulate karo (M-cone absent)
function simulateDeuteranopia(L, M, S) {
return {
L: L,
M: 0.494207 * L + 1.24827 * S, // M = L aur S se derive
S: S,
};
}
WCAG 2.2 Color Accessibility Guidelines 2026
WCAG 2.2 Contrast Requirements
| Criterion | Level | Requirement |
|---|---|---|
| 1.4.3 Contrast (Minimum) | AA | Normal text: 4.5:1; Large text: 3:1 |
| 1.4.6 Contrast (Enhanced) | AAA | Normal text: 7:1; Large text: 4.5:1 |
| 1.4.11 Non-text Contrast | AA | UI components: 3:1 |
| 1.4.1 Use of Color | A | Color ONLY se information convey nahi karni |
Contrast Ratio Calculate Karna
function getRelativeLuminance(r, g, b) {
const [rs, gs, bs] = [r, g, b].map(c => {
const s = c / 255;
return s <= 0.04045 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4);
});
return 0.2126 * rs + 0.7152 * gs + 0.0722 * bs;
}
// Examples:
// Black on White: 21:1 (maximum)
// #767676 on White: 4.54:1 (just passes AA for normal text)
// #0066CC on White: 4.88:1 (passes AA — good blue link color)
Color-Blind Friendly Palettes aur Safe Color Combinations
Golden Rules
- Color ko single channel mat banao — Color ke saath text labels, icons ya patterns hamesha use karo
- Sufficient luminance contrast ensure karo — Same lightness ke colors CVD simulation mein identical ho jaate hain
- Red-green combinations se bachao — Blue aur orange ka primary pair use karo
Scientifically Designed Accessible Palettes
/* Paul Tol's Bright palette — CVD safe */
--tol-blue: #4477AA;
--tol-cyan: #66CCEE;
--tol-green: #228833;
--tol-yellow: #CCBB44;
--tol-red: #EE6677;
--tol-purple: #AA3377;
/* Sabse safe 2-color pair: */
--safe-blue: #0072B2; /* Blue */
--safe-orange: #E69F00; /* Orange */
/* Wong palette (Nature journals standard) */
--wong-orange: #E69F00;
--wong-sky-blue: #56B4E9;
--wong-green: #009E73;
--wong-blue: #0072B2;
--wong-vermillion: #D55E00;
UI Component Guidelines
| Component | Bad Approach | Accessible Approach |
|---|---|---|
| Error state | Sirf red border | Red border + error icon (✗) + "Error:" text |
| Success state | Sirf green background | Green + checkmark icon + "Success" text |
| Line chart | Sirf red aur green lines | Different line styles (solid, dashed) + color |
| Heatmap | Red-green gradient | Viridis ya sequential blue palette |
UI Color Blindness Testing: Step-by-Step Workflow
Phase 1: Design Tool mein (Figma/Sketch)
- Design ko completely desaturate karo — grayscale mein bhi information clear honi chahiye
- Figma ki built-in accessibility checker se contrast ratios check karo
- Stark plugin se per-layer CVD simulation apply karo
Phase 2: ToolsArena Simulator se
1. UI screenshot lo
2. Color Blindness Simulator mein upload karo
3. Sab 8 CVD types toggle karo
4. Har type ke liye check karo:
- Error aur success states distinguish hote hain?
- Chart elements alag dikhte hain?
- Buttons aur links recognizable hain?
5. Failing components note karo
6. Fixes apply karo (icons add karo, palettes change karo)
7. Re-test karo
Phase 3: Browser DevTools
Chrome DevTools → More tools → Rendering →
"Emulate vision deficiencies" mein select karo:
- Protanopia, Deuteranopia, Tritanopia, Achromatopsia, Reduced contrast
NoCoffee extension (free):
- Sab CVD types simulate karta hai
- Glaucoma, cataract simulation bhi
Phase 4: CI/CD Automated Checks
# axe-core se color contrast automated testing
npm install axe-core @axe-core/playwright
# Playwright test example:
const results = await new AxeBuilder({ page })
.withRules(['color-contrast'])
.analyze();
expect(results.violations).toHaveLength(0);
Famous Products Jinhe Color Accessibility Galat Lagi
Case 1: Pokémon GO — Team Colors (2016-2019)
Pokémon GO ke teen teams — Mystic (blue), Valor (red), Instinct (yellow) — primarily color se represent kiye gaye the। Protanopia users ke liye Valor ka red almost black dikhta tha। 2019 mein animal icons add kiye gaye — 3 saal baad।
Case 2: GitHub — Diff View (Fixed 2021)
GitHub ka code diff view classic red (removed) aur green (added) use karta tha। Deuteranopia simulation mein dono similar dark grey tone se dikhte the। 2021 mein "Colorblind themes" add kiye gaye — orange/blue aur orange/purple pairs jo sab CVD types mein distinguishable hain।
/* GitHub's colorblind-friendly diff (approximate) */
.diff-removed { background-color: #ffd8b5; } /* Orange — not red */
.diff-added { background-color: #b3d3f4; } /* Blue — not green */
Case 3: Power BI — Default Chart Palette
Microsoft Power BI ke default chart mein pehle do colors red aur green the — literally sabse common CVD failure। C-suite decisions ke liye dashboards banaye jaate the jo 1 in 12 male executives ke liye illegible the। 2022 mein colorblind theme option release hua।
Common Failure Patterns
| Failure Pattern | Common In | Fix |
|---|---|---|
| Red = error, Green = success only | Form validation | Icons (✗, ✓) + text labels add karo |
| Red/green data series | BI tools, analytics | Blue/orange palette + line styles |
| Red-green heatmap | Performance tools | Viridis/plasma sequential palette |
| Color-only links | News sites | Underline ya 3:1 contrast vs text |
How to Use the Tool (Step by Step)
- 1
UI screenshot prepare karo
Apne design ka screenshot lo, ya Figma se PNG export karo। Actual rendered UI screenshots best kaam karte hain।
- 2
Image upload karo
Color Blindness Simulator mein drag-and-drop ya click karke upload karo। PNG, JPG, WebP, SVG supported hain। Koi image server par store nahi hoti — sab browser mein process hota hai।
- 3
CVD type select karo
Pehle Deuteranomaly (5% men, most common) se start karo। Phir Deuteranopia, Protanopia aur Tritanopia test karo।
- 4
Side-by-side compare karo
Original aur simulated versions simultaneously dekhne ke liye side-by-side view use karo। Error states, success states, chart legends aur form validation check karo।
- 5
Failing elements identify karo
Note karo kahan critical information lost ho raha hai — colors jo distinct the aab identical lag rahe hain, ya charts jahan series differentiate nahi ho rahi।
- 6
Grayscale test apply karo
Achromatopsia (full grayscale) simulation pe switch karo। Agar UI sab information color ke bina communicate kar raha hai toh accessible foundation build ho chuki hai।
- 7
Fix karo aur re-test karo
Icons add karo, accessible palettes switch karo, chart series mein text labels add karo। Re-upload karke verify karo ki fixes kaam kar rahi hain।
Frequently Asked Questions
Kitne percent users color blind hote hain?+−
Approximately 8% men aur 0.5% women of Northern European descent mein color vision deficiency hoti hai। Global average ~6% men hai। 1 lakh users wali app mein statistically ~4,000 color blind users hote hain। Sabse common type deuteranomaly hai (5% men)।
WCAG 2.2 contrast ratio requirement kya hai?+−
WCAG 2.2 Level AA mein: normal text ke liye minimum 4.5:1 contrast; large text (≥18pt ya ≥14pt bold) ke liye 3:1; UI components (buttons, form fields, icons) ke liye 3:1 (criterion 1.4.11)। Aur criterion 1.4.1: color NEVER the only means of conveying information — yeh contrast ratios se alag requirement hai।
Color blind users ke liye safe colors kaun se hain?+−
Sabse safe primary pair hai blue (#0072B2) aur orange (#E69F00) — sab common CVD types mein distinguishable hain। Red-green combinations solo use karne se bachao। Multi-series charts ke liye Paul Tol's palette, Wong palette (Nature journals standard) ya Okabe-Ito palette use karo। Color ke saath hamesha text labels, icons ya patterns bhi add karo।
Color blindness simulator kitna accurate hota hai?+−
Mathematical approximation hai — Brettel-Viénot-Mollon model par based। Dichromacy (complete cone absence — deuteranopia, protanopia) ke liye accurate hai। Anomalous trichromacy (deuteranomaly, protanomaly) ke liye less precise — individual cone shift vary karta hai। High-stakes decisions ke liye real CVD users se bhi validate karo।
Apna Design Color Blindness Test Karo
Koi bhi UI screenshot upload karo aur 8 CVD types se dekho। Free, in-browser, koi data store nahi। Designers aur accessibility engineers ka trusted tool।
Color Blindness Simulator KholeinRelated Guides
कलर कोड पिकर — HEX, RGB, HSL क्या होते हैं? (2026)
Web designers और developers के लिए color formats, Indian brand colors, और CSS tips।
Color Palette from Image — Colors Extract (2026)
Photo upload → dominant colors → hex codes copy।
CSS Gradient Generator — Beautiful Gradients Code (2026)
Linear, radial, conic gradient visually design। CSS code copy।