Color Converter & Contrast Checker

Convert between HEX, RGB, HSL, HSV, CMYK, and OKLCH. Check WCAG contrast, generate palettes, extract palettes from images, build CSS gradients, simulate color blindness.

How to convert colors and check contrast

  1. Enter a color in any format (HEX, RGB, HSL, HSV, OKLCH, or CMYK) or pick one with the color picker. Every other format updates instantly.
  2. Copy the format you need with one click.
  3. Set a text and background color in the contrast checker to see the WCAG contrast ratio and whether it passes AA and AAA.

Build accessible palettes

Generate complementary, analogous, triadic, and other color harmonies, plus an 11-step tint and shade scale for design systems. Drop in a photo or screenshot to extract its main colors, or use the eyedropper to sample a single pixel. The gradient builder creates linear, radial, and conic CSS gradients, including smooth in oklch interpolation. Color blindness simulation shows how your colors look with protanopia, deuteranopia, and tritanopia.

Frequently asked questions

What contrast ratio do I need?

WCAG 2.1 AA requires 4.5:1 for normal text and 3:1 for large text and interface components. AAA raises those to 7:1 and 4.5:1.

Why use OKLCH?

OKLCH is a perceptual color space: changing the lightness value changes how light a color actually looks, consistently across hues. That makes it easier to build even color scales, and modern browsers support it in CSS.

Is my image uploaded when I extract a palette?

No. The image is analyzed in your browser and never leaves your device.

Related tools

More in Image & Media Tools · All 73 tools