Color Converter & Contrast Checker
Runs locallyConvert HEX, RGB, HSL, HWB, OKLCH, OKLab, Display-P3, check WCAG/APCA contrast and export scales.
What is Color Converter & Contrast Checker?
Convert any color between HEX, RGB, HSL, HWB, LCH, OKLCH, OKLab, CMYK, Display-P3, and named CSS colors using culori. Generate 50–950 Tailwind tint/shade scales, check WCAG 2.2 AA/AAA and APCA contrast with auto-suggested accessible pairs, simulate color vision deficiencies, and export for CSS, SwiftUI, Jetpack Compose, Android XML, and Flutter.
How to use Color Converter & Contrast Checker
- Step 1
Enter any color string (HEX, rgb(), hsl(), oklch(), named color) or use the picker / EyeDropper.
- Step 2
Copy converted formats across CSS, Tailwind, Display-P3, Android XML, SwiftUI, Compose, and Flutter.
- Step 3
Test foreground vs background in the WCAG 2.2 & APCA Contrast tab and click Auto-fix to find the nearest compliant shade.
- Step 4
Generate 50–950 scales, color harmonies, and inspect color-blindness simulations.
Features
- Accurate color space math via culori (HEX, RGB, HSL, HWB, LCH, OKLCH, OKLab, CMYK, Display-P3)
- 50–950 shade/tint scale generator with Tailwind CSS config export
- WCAG 2.2 AA/AAA (normal, large, UI) and APCA perceptual contrast checker with accessible auto-suggestions
- Harmonies (complementary, analogous, triadic, split, tetradic) and color-blindness simulation
- Multi-platform export: CSS vars, SCSS, Tailwind, Android colors.xml, iOS colorset, SwiftUI, Compose, Flutter
Example
Input
#2ee6a6
Output
oklch(0.835 0.165 164) · rgb(46, 230, 166) · hsl(159, 79%, 54%)
Converts sRGB hex into perceptually uniform OKLCH and platform color structs.
Frequently asked questions
Why use OKLCH instead of HSL?
OKLCH preserves perceived lightness across hues, making palette scales consistent and accessible.
What is APCA contrast?
APCA (Accessible Perceptual Contrast Algorithm) models font weight and polarity (light-on-dark vs dark-on-light) alongside WCAG 2.2 ratios.
Does the EyeDropper work in all browsers?
The native EyeDropper API works in Chromium-based desktop browsers; manual color picking and text input work everywhere.
Are my design tokens uploaded?
No, all color calculations run locally in your browser.
Related tools
CSS Gradient Generator
Design linear, radial, conic and OKLCH gradients with export to CSS, Tailwind, SwiftUI and Compose.
Color Contrast Checker
Check WCAG 2.2 AA/AAA and APCA contrast ratios and auto-suggest accessible color pairs.
Box Shadow Generator
Design layered CSS box shadows with inset, presets and Tailwind/SwiftUI/Compose export.