Converters · Free

Color Converter

Convert colors across hex, rgb, hsl, oklch and lab.

Stays on your deviceFree
All formats

Convert a color between HEX, RGB, HSL, OKLCH and LAB in one place — type a value in any of these formats and every other format updates instantly, each with a copy-ready CSS string. Unlike Google's built-in color box, this tool understands HSL as input and supports the modern OKLCH and LAB color spaces that CSS Color Level 4 and Tailwind v4 now use, so you can move a color from legacy HEX into a perceptually-uniform space and back. When a wide-gamut OKLCH or LAB color falls outside what a screen can show, the HEX and RGB values are clipped to the closest displayable color and we tell you. Everything runs locally in your browser — nothing is uploaded.

How it works

  1. Paste or type a color — HEX (#14b8a6), rgb(), hsl(), oklch() or lab(). The format is detected automatically.
  2. Read off the value you need from the format rows below.
  3. Click the copy button next to any format to copy its CSS string.
  4. Toggle “Keep transparency” if your color has an alpha channel.

FAQ

How it works & more

More Converters tools

Free

Business Days Calculator

Working days between dates, with per-country holidays.

Free

Add/Subtract Days

Add or subtract days, weeks or months from a date.

Free

Date Duration Calculator

Days, weeks and months between two dates — in your browser.