HEX, RGB and HSL
Convert a colour between the formats designers and developers use.
Convert HEX, RGB and HSL colours and check text contrast for accessibility.
HEX
#1F5C4C
RGB
rgb(31, 92, 76)
HSL
hsl(164, 50%, 24%)
Large sample text
Normal sample text, the quick brown fox jumps over the lazy dog.
16.56 : 1
Color Converter & Contrast Checker is a free online tool that lets you convert HEX, RGB and HSL colours and check text contrast for accessibility. Enter your text or numbers and see the result instantly. Everything you type stays in your browser.
Also searched as: HEX to RGB converter, contrast checker, WCAG contrast checker, text contrast accessibility.
Open Color Converter & Contrast Checker and fill in the values it asks for.
The result appears and updates instantly as you change any field.
Copy the result if you need to paste it elsewhere.
Color Converter & Contrast Checker
Convert between HEX, RGB and HSL, and test whether text is readable on a background using the WCAG contrast ratio.
Convert a colour between the formats designers and developers use.
Choose a text colour and a background colour and see the contrast ratio between them.
Results show whether the pair meets the AA and AAA levels, for normal and for large text.
A sample of your text on your background shows how it really looks.
Everything runs in your browser.
No account and no limit.
For normal text, a ratio of 4.5 to 1 is the usual minimum for AA. Large text needs less.
Some visitors cannot tell certain colours apart, so add labels or icons as well.
Check your main brand colour against white and against dark text before using it for body text.
Short, practical guides that go with this tool.
Color Converter & Contrast Checker runs as client-side JavaScript inside your own browser tab. Your file or text is read, processed, and turned into a result on your device โ it is never sent to, stored on, or seen by Toolkitties' servers. Closing or refreshing the page clears everything.
It gives the contrast ratio between text and background colours and whether it meets the AA and AAA levels.
For AA, normal text needs a ratio of at least 4.5 to 1 and large text at least 3 to 1. AAA asks for more.
Under the WCAG guidelines, large text is roughly 18 point and above, or 14 point and above in bold.
Yes. It converts between HEX, RGB and HSL.
No. Contrast is one part of accessibility. Also consider font size, spacing and testing with real users.
No. Everything runs in your browser.
Yes. Color Converter & Contrast Checker is 100% free, with no signup, no daily limit and no paid plans.
No signup or login is required. Open the page and start using Color Converter & Contrast Checker immediately.
Yes. Color Converter & Contrast Checker processes your file locally in your browser using client-side code. The file itself is never uploaded to Toolkitties' servers.