Color Converter & Contrast Checker
HEX ↔ RGB ↔ HSL conversion with WCAG AA / AAA contrast against any background.
WCAG AA requires 4.5:1 for normal text, 3:1 for large text (18pt+ or 14pt bold). AAA requires 7:1 and 4.5:1.
Picking a brand colour without checking its contrast is the single most common cause of inaccessible product UI. This tool shows the colour in HEX, RGB and HSL, calculates WCAG contrast against the background of your choice and against pure white and black, and gives you AA or AAA verdicts immediately.
For accessible text, aim for 4.5:1 contrast at normal weight. For UI elements like borders and icons, 3:1 is the minimum. Below 3:1, assume elements are invisible to a meaningful share of your users.
Frequently asked questions
For normal text (below 18pt or below 14pt bold): 4.5:1 contrast ratio between text and background. For large text (18pt+ or 14pt bold): 3:1. UI components and graphical objects: 3:1. These are the minimum legal standards in many jurisdictions and the baseline for accessible design.
AAA is stricter — 7:1 for normal text, 4.5:1 for large. AAA is often impossible to meet for brand colours with reasonable visual appeal. Default to AA; reserve AAA for text-critical interfaces (medical, government forms, documentation).
HSL (Hue, Saturation, Lightness) is easier to reason about for design systems. Keep hue stable and vary lightness to generate a tonal scale. HEX is for final output; HSL is for thinking.
Not directly. Contrast ratio is a different concern from color-blind safety. For color-blind-safe palettes, use tools like Coblis to simulate protanopia, deuteranopia and tritanopia. A high contrast ratio does help color-blind users by ensuring critical differences are not conveyed by hue alone.
More free tools
Tell us what is slowing your business down.
A 30-minute call with a senior engineer — not a salesperson. You leave with an architecture sketch and an honest cost range, whether or not you hire us.
Direct line
+91 70033 91355Mon–Sat · 9:30 AM – 7:30 PM IST · Sealdah, Kolkata