HEX
RGB
HSL
CSS Values
Color Format Conversion
Web colors come in several formats and you'll often need to convert between them. Your designer sends a HEX code, the animation library wants RGB, and your CSS variables use HSL. This tool does instant bidirectional conversion between all three.
When to Use Each Format
- HEX — Best for CSS shorthand. Quick to copy, widely understood.
#ff6b35 - RGB — Use when you need alpha transparency (
rgba) or when working with JavaScript canvas operations - HSL — Best for generating color variations. Change the lightness value to get lighter or darker shades of the same hue
For a full visual picker with gradient support and palette management, check the Color Picker & Palette tool.