Color Converter & Contrast
Convert colors between HEX, RGB, HSL and CSS formats, and check the WCAG contrast ratio between any two colors for normal and large text. Paste a color, click the picker, or drag the swatches — all locally.
Accepts HEX (#6C5CE7, #6c5ce7, #64c), rgb(108,92,231), hsl(246,74%,63%), hsv(246,60%,91%) and plain values like white or cornflowerblue.
Contrast ratio
WCAG 2.x: AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.
About the Color Converter & Contrast
Convert colors between HEX, RGB, HSL and CSS formats, and check the WCAG contrast ratio between any two colors for normal and large text. Paste a color, click the picker, or drag the swatches — all locally.
All color math runs locally in your browser.
How to use the Color Converter & Contrast
- Step 1Type or pick any color — the conversion panel fills in automatically.
- Step 2Choose a foreground (text) and a background color.
- Step 3Read the WCAG contrast ratio and the AA / AAA pass or fail pills.
When people reach for this tool
Convert a value into whatever format the next tool needs
Design tools, CSS and print workflows each expect a different notation for the same colour.
Read the contrast ratio between two colours
The ratio tells you directly whether text on that background meets the accessibility guidelines.
Understand what a value in a stylesheet means
The same colour can be written several ways, and knowing the channels helps you adjust it.
Practical tips
- Contrast depends on the pair, not the single colour. Always check the combination you actually intend to ship.
- Alpha is separate from the colour itself, so a translucent value needs checking against whatever is behind it.
What you get
- Live conversion between HEX, RGB, HSL and HSV
- Named CSS colors and 3-digit HEX supported
- WCAG 2.x contrast ratio for any two colors
- AA and AAA checks for normal and large text
- Click-to-copy of every format
Color Converter & Contrast — FAQ
What counts as “large text”?
Why do my two HEX values convert slightly differently?
What is a good contrast ratio?
Which format should I use?
More color & design tools
All 6 other tools in this collection — free, no sign-up, nothing uploaded.