Convert CSS hex, rgb(), hsl() and OKLCH colors, including alpha, with a live swatch.
The result appears here.
Ctrl+↵ copy result · Ctrl+Shift+F result to input
Enter an explicit hex, rgb(), hsl() or oklch() value so the result is unambiguous.
The sRGB preview and output are clipped. A warning marks the approximation; use the source OKLCH value where wide gamut color is supported.
Yes. Alpha is retained in the converted values, with rounding for hex bytes.
Guides, common conversions and useful next steps.
Use the action beside a finished result to send it directly, or open another tool: