How to convert and check colors
- Enter a color in any format — HEX, RGB or HSL — and the others update instantly.
- Copy the format your design tool or stylesheet needs.
- Generate a gradient from your color to explore tints and shades.
- Check the contrast ratio against white or black text to verify accessibility.
Frequently Asked Questions
Which color formats are supported?
HEX, RGB, and HSL convert bidirectionally in real time — entering any format syncs the others automatically.
Can gradients be exported?
Yes, copy the CSS linear-gradient code in one click.
How is contrast assessed?
Calculated with the WCAG relative-luminance formula, marking whether AA/AAA pass for body and large text.
Is data sent to a server?
No. All calculations happen in your browser.
What contrast ratio should I aim for?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text; AAA raises these to 7:1 and 4.5:1. The checker shows the ratio as you adjust the color.
What is the difference between HEX, RGB and HSL?
They describe the same color in different coordinate systems: HEX and RGB mix red, green and blue amounts, while HSL uses hue, saturation and lightness — which is far easier for building color variations.
Can I generate shades of one color?
Yes. The gradient generator steps the color toward white or black, giving you a ready-made palette for hover states and backgrounds.
Technical References
- WCAG Contrast — W3C: https://www.w3.org/TR/WCAG21/#contrast-minimum
- WCAG 2.1 — Understanding Contrast Minimum: https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html