Color Converter
Convert HEX ↔ RGB ↔ HSL ↔ OKLCH.
Runs entirely in your browser
- HEX
- #3b82f6
- RGB
- rgb(59 130 246)
- HSL
- hsl(217 91.2% 59.8%)
- OKLCH
- oklch(62.3% 0.188 259.8)
FAQ
- What's OKLCH good for?
- OKLCH is a perceptually uniform color space — equal steps look equal to the eye. Tailwind v4 defaults to it. Great for building lightness ramps that don't dip into muddy greens or grays.
- Is alpha supported?
- Yes. Enter #RRGGBBAA (or #RGBA short form) and every output row includes the alpha value.
Related tools
- PX ↔ REM Converter
Convert between px and rem with a configurable base font size.
- PX ↔ VW Converter
Convert between px and viewport width units for fluid layouts.
- Gradient Generator
Design linear and radial CSS gradients with a live preview.
- Box Shadow Generator
Build multi-layer CSS box shadows with a live preview.