Color Converter
Convert colors across hex, rgb, hsl, oklch and lab.
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
- Paste or type a color — HEX (#14b8a6), rgb(), hsl(), oklch() or lab(). The format is detected automatically.
- Read off the value you need from the format rows below.
- Click the copy button next to any format to copy its CSS string.
- Toggle “Keep transparency” if your color has an alpha channel.
FAQ
Related pages
More Converters tools
Business Days Calculator
Working days between dates, with per-country holidays.
Add/Subtract Days
Add or subtract days, weeks or months from a date.
Date Duration Calculator
Days, weeks and months between two dates — in your browser.