Color Converter
Convert CSS hex, rgb(), hsl() and OKLCH colors, including alpha, with a live swatch.
Paste text or open a fileOr start from an example:
CSS color values
The result appears here.
Ctrl+↵ copy result · Ctrl+Shift+F result to input
How to use Color Converter
- Enter a hex, rgb(), hsl() or oklch() color.
- Check the swatch, converted formats and any gamut warning.
- Copy the CSS values.
Frequently asked questionsUseful details
3 answers +
Are named colors supported?
Enter an explicit hex, rgb(), hsl() or oklch() value so the result is unambiguous.
What if an OKLCH color exceeds sRGB?
The sRGB preview and output are clipped. A warning marks the approximation; use the source OKLCH value where wide gamut color is supported.
Is transparency preserved?
Yes. Alpha is retained in the converted values, with rounding for hex bytes.
More help
Guides, common conversions and useful next steps.
Continue with your result
Use the action beside a finished result to send it directly, or open another tool:
- Word Counter
- Case Converter
- Compare Text
- Remove Duplicate Lines
- JSON Formatter
- JSON to CSV
- CSV to JSON
- JSON to YAML
- YAML to JSON
- JSONPath Query
- JWT Inspector
- URL Inspector
- Base64 Encoder
- URL Encoder
- HTML Escaper
- Hash Generator
- Timestamp Converter
- Regex Tester
- JSON Lines Converter
- Slug Generator
- Unicode Inspector
- Aspect Ratio Calculator
- UUID Generator
- Password Generator