Color Converter & Contrast Checker
Convert between HEX, RGB, HSL, and OKLCH. Check WCAG contrast ratios.
100% in your browser — files never leave your device
Color converter
WCAG contrast checker
The quick brown fox jumps over the lazy dog.
Small text — 14px equivalent. Hard to read at low contrast.
How the color conversions and contrast checker work
HEX, RGB, and HSL conversion is straightforward math shared by every color tool. OKLCH is the newer addition: it's a perceptually uniform color space, meaning equal numeric steps in lightness or chroma look like equal steps to the human eye — unlike HSL, where a lightness change can look wildly different depending on hue. The conversion follows Björn Ottosson's published OKLab formulas.
The contrast checker computes the WCAG relative-luminance ratio between your two colors and checks it against four thresholds: AA normal text (4.5:1), AA large text (3:1), AAA normal text (7:1), and AAA large text (4.5:1). Passing AAA is the higher bar most accessibility audits eventually ask for.
The ratio is calculated only between the two flat colors you enter. It can't see gradients, background images, or partial transparency, all of which change effective contrast in a real interface — treat a passing ratio here as a starting point, not a substitute for checking the rendered page.
Frequently asked questions
What are the WCAG contrast thresholds?
WCAG 2.1 defines two levels. AA requires a 4.5:1 ratio for normal text (under 18pt / 14pt bold) and 3:1 for large text. AAA requires 7:1 for normal text and 4.5:1 for large text. The higher the ratio, the better readability for users with low vision.
Is my color data sent anywhere?
No. All color math runs in your browser — conversions, contrast calculations, everything. Nothing is uploaded or logged.
What is OKLCH and why use it?
OKLCH is a perceptually uniform color space. Equal numeric steps in lightness or chroma look equally different to the eye, which makes it ideal for programmatic color manipulation, palette generation, and CSS color-mix().
Related tools
How to use Color Converter
Use the free tool above, or check the options on your device. No subscription or account is required for the browser tool.
Color Converter in your browser
Free browser tool — no installation
- Enter a color value or use Pick.
- Review converted color formats; set Foreground and Background for the contrast check.
- Copy the desired color value.
Contrast results apply to the chosen color pair; transparency and actual surrounding colors can change readability.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
Color Converter on Mac
Free browser tool — no installation
Use the tool on this page in Safari, Chrome, or Firefox. These steps use the browser tool; they do not require an extra app.
- Enter a color value or use Pick.
- Review converted color formats; set Foreground and Background for the contrast check.
- Copy the desired color value.
Contrast results apply to the chosen color pair; transparency and actual surrounding colors can change readability.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
For file tools, choose a copy of the original. Find saved results in your browser’s Downloads menu; your browser may ask where to save them. If processing fails, keep the original and try a smaller file or a desktop browser.
Color Converter on Windows
Free browser tool — no installation
Use the tool on this page in Edge, Chrome, or Firefox. These steps use the browser tool; they do not require an extra app.
- Enter a color value or use Pick.
- Review converted color formats; set Foreground and Background for the contrast check.
- Copy the desired color value.
Contrast results apply to the chosen color pair; transparency and actual surrounding colors can change readability.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
For file tools, choose a copy of the original. Find saved results in your browser’s Downloads menu; your browser may ask where to save them. If processing fails, keep the original and try a smaller file or a desktop browser.
Color Converter on iPhone / iPad
Free browser tool — no installation
Use the tool on this page in Safari or another current browser. These steps use the browser tool; they do not require an extra app.
- Enter a color value or use Pick.
- Review converted color formats; set Foreground and Background for the contrast check.
- Copy the desired color value.
Contrast results apply to the chosen color pair; transparency and actual surrounding colors can change readability.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
For file tools, choose Browse in the file picker to find a document in Files. A result may open in a preview; use Share → Save to Files when offered. If processing fails, keep the original and try a smaller file or a desktop browser.
Color Converter on Android
Free browser tool — no installation
Use the tool on this page in Chrome or another current browser. These steps use the browser tool; they do not require an extra app.
- Enter a color value or use Pick.
- Review converted color formats; set Foreground and Background for the contrast check.
- Copy the desired color value.
Contrast results apply to the chosen color pair; transparency and actual surrounding colors can change readability.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
For file tools, choose a document from the system file picker. Saved downloads are usually available in your browser’s Downloads menu or your file manager. If processing fails, keep the original and try a smaller file or a desktop browser.