What is CSS Color Converter?
CSS supports several color notations. HEX is common in design systems, RGB describes red, green, and blue channels, and HSL describes hue, saturation, and lightness. Converting between them helps compare and reuse colors across stylesheets and design tools. This utility supports HEX (#RGB, #RRGGBB, #RRGGBBAA) and rgb()/rgba() inputs.
What can you use it for?
- Convert a HEX brand color into RGB or HSL values.
- Inspect RGB values copied from browser developer tools.
- Compare color representations while building a CSS palette.
How to use this tool
- Enter a HEX, RGB, or RGBA color value.
- Select Convert color.
- Copy the HEX, RGB, and HSL representations from the output.
- Review alpha transparency separately when the source includes it.
Example input
Convert this sample blue color into RGB and HSL.
#336699
Tips and things to know
- Supported input formats are HEX and rgb()/rgba(); named colors and hsl() input are not supported in this version.
- HSL values are rounded for display.
- Color conversion does not evaluate contrast or accessibility.
Frequently asked questions
Which formats are supported?
This version accepts 3-, 6-, and 8-digit HEX plus rgb() and rgba() notation.
Does it calculate accessibility contrast?
No. It converts color notation only; use a contrast checker for WCAG contrast ratios.
Does it support transparency?
Eight-digit HEX and rgba() alpha values are reported, but HSL output describes the color channels.