--color-primary: #06d6a0;bg-[#06d6a0]@theme {
--color-primary: oklch(78% 0.16 167);
}Color Converter is a free online tool for converting between HEX, RGB, HSL, OKLCH and other color spaces. Includes a visual picker, image palette extraction, WCAG contrast checker, and color-blindness preview. Runs entirely in your browser.
About Color Conversion
This color tool converts between 7 color spaces, generates harmonies, checks contrast ratios (WCAG and APCA), simulates color blindness, and extracts palettes from images. See [Number Base converter](/numbase) for hex calculations, or [Image compressor](/image) for image processing.
WCAG 2.1 uses a luminance ratio (1:1 to 21:1) with thresholds for AA/AAA. It is widely supported but doesn't fully account for perception of small text or dark mode.
APCA is a candidate for WCAG 3 with a polarity-aware Lc score. It correlates better with readability for thin or small text.
Tips
- Use the eyedropper to pick a color from any pixel on your screen (Chromium browsers).
- Drop an image into the Palette tab to extract its 6 dominant colors via median-cut quantization.
- Tailwind v4 emits colors in OKLCH for perceptual smoothness — copy the @theme block to align with that workflow.
Can I extract colors from an image?
Yes. Drag and drop any image onto the palette extraction area to get the dominant colors. You can also simulate color vision deficiencies (protanopia, deuteranopia, tritanopia).