Color converter: HEX, RGB, HSL, OKLCH

A color converter rewrites one color in other notations. #0066cc is the same color as rgb(0, 102, 204) and hsl(210, 100%, 40%).

How to use the color converter

  1. Type a HEX, RGB or HSL value, or use the picker.
  2. Read all four formats.
  3. Copy the one your code or design file needs.

Why OKLCH is useful

OKLCH separates lightness, chroma and hue in a way that matches perception more closely than HSL, so colors with equal lightness look similarly light. It is supported in current CSS.

Frequently asked questions

What is a HEX color?

Red, green and blue written as three two-digit hexadecimal numbers.

Is transparency supported?

No. This converter handles opaque colors.

Can I paste an OKLCH value?

Input accepts HEX, RGB and HSL. OKLCH is output only.

Related tools