Color Converter & Contrast Checker
Convert between HEX, RGB and HSL, and check colour contrast
calendar_today Last updated: September 17, 2026
Same colour, three ways
#00609brgb(0, 96, 155)hsl(202.8, 100%, 30.4%)Contrast check
Sample text at this pairing
Smaller text, which is the harder case.
The ratio follows WCAG 2.1, gamma step included — the part a rough average of the channels gets wrong.
Sahel's colour converter moves between HEX, RGB and HSL and checks contrast against WCAG, saying whether a pair passes for normal and large text — all in your browser.
How does this tool work?
Paste a colour
A hex code, rgb(...) or hsl(...).
Take the format you want
The same colour in three ready-to-copy notations.
Check the contrast
Add a background colour to see the ratio and whether it passes WCAG.
Frequently asked questions
What is HSL good for? expand_more
What does the contrast ratio mean? expand_more
Why does a grey that looks readable fail? expand_more
Does passing the ratio make a design readable? expand_more
Related tools
JSON Formatter & Validator
Format and validate JSON, with the error pinned to a line and column
Base64 Encoder & Decoder
Convert text to Base64 and back, with full Arabic support
Hash Generator
Compute MD5, SHA-1, SHA-256 and SHA-512 for any text or file
JWT Decoder
Read a token’s header, claims and expiry