devpocket.dev

Color Converter

Convert CSS colors across hex, RGB, HSL, HWB, LAB, LCH, OKLCH, and names.

Runs locally
Loading tool…

How to use

Enter any supported CSS color, including a named color or modern LAB, LCH, and OKLCH syntax. All equivalent formats update immediately and can be copied individually. Use the native picker for quick visual selection. Contrast cards compare the color with white and black using WCAG ratios; badges indicate AA and AAA thresholds for normal text.

FAQ

Why can OKLCH produce out-of-gamut colors?

Some lightness/chroma combinations cannot be displayed in sRGB. This converter clips the RGB result to the displayable sRGB gamut.

What contrast ratio passes WCAG?

For normal text, AA requires 4.5:1 and AAA requires 7:1. Large text has lower thresholds.

Related tools