Convert between hex, RGB, HSL, and their alpha variants. Live preview. Click any value to copy CSS-ready code.
Hex: #RRGGBB or #RRGGBBAA. Each channel is 00—FF (0—255). Shorthand #RGB triples each digit. CSS-compatible.
RGB: rgb(red, green, blue). Each channel 0—255. RGBA: rgba(r, g, b, alpha) where alpha is 0—1.
HSL: hsl(hue, saturation%, lightness%). Hue 0—360°, saturation/lightness 0—100%. HSLA: same with alpha channel.
Color theory tip: complementary colors are 180° apart on the hue wheel. Split-complementary (±150°) creates balanced palettes. Triadic (0°, 120°, 240°) gives vibrant harmony.
Related: PX to REM Converter · CSS Unit Converter · Color Palette Generator · All CSS Tools