Color Converter

Instantly convert a color between every modern CSS format: HEX, RGB(A), HSL(A), OKLCH and LAB, with a preview and one-click copy.

Source color

Formats

User guide

Each color space has its uses: HEX and RGB for the classic web, HSL to reason in hue/saturation/lightness, and OKLCH/LAB for uniform perception, ideal for gradients and accessible palettes.

  • OKLCH: modern, perceptually uniform, supported by recent browsers.
  • OKLCH and LAB conversions are computed from sRGB (approximate values).

FAQ

Why use OKLCH?

OKLCH is perceptually uniform: varying lightness or hue gives visually consistent results, perfect for harmonious palettes and gradients.

Are my LAB values exact?

They're computed from sRGB with the D65 white point and remain standard approximations, fine for web design.