Convert colors
Convert colors between CSS formats
Preview
HEX
RGB
RGBA (Legacy)
HSL
HSLA (Legacy)
Name
About this tool
Enter a supported CSS color value to see its preview and equivalent HEX, RGB, RGBA, HSL, HSLA, or named color values. The converter is useful when adapting a color to a stylesheet or design system. Color conversion runs locally in your browser.- 100% free. No registration required.
- Runs in the browser. No data is sent to the server.
Limits
Unlimited usage via the browser.When used via the API:Plan Free - 1 000 requests / month
Plan Plus - 10 000 requests / month
Plan Pro - 100 000 requests / month
Plan Max - 300 000 requests / monthLearn more about plans and pricing.
Tips
- You can enter 3-digit or 6-digit hexadecimal colors, RGB or HSL functions, or common CSS color names.
- RGBA and HSLA values include an alpha channel for transparency.
- Hexadecimal output is rounded to the nearest 8-bit color value.
Frequently Asked Questions
Which color formats can I enter?
You can enter 3-digit or 6-digit hexadecimal colors, rgb(), rgba(), hsl(), or hsla() values, and common CSS color names.Which formats does the tool output?
The tool outputs HEX, RGB, RGBA, HSL, and HSLA values for the color you enter.Is my color sent to a server?
No. Color conversion is performed directly in your browser, and your input is not uploaded.What does the alpha value mean?
Alpha controls transparency. A value of 1 is fully opaque and 0 is fully transparent.Why can converted values be slightly different?
Some formats use integer channels while others use percentages or decimals, so converting between them can involve rounding.