Encoding
CSS Color Converter
Convert between RGB/RGBA, HEX/HEXA, and HSL/HSLA formats for CSS workflows.
Process the input to see the result here.
Convert between RGB/RGBA, HEX/HEXA, and HSL/HSLA formats for CSS workflows.
Standard tool execution runs in the browser, with no dedicated backend for processing inputs.
- Paste or enter data in the input panel.
- Use Process, or let automatic processing run when available.
- Review the result, copy the output, and validate it before critical use.
- RGB to HEX
- HEX with alpha to RGBA
RGB to HEX
Input: rgb(255, 99, 71)
Output: #FF6347
HEX with alpha to RGBA
Input: #FF634780
Output: rgba(255, 99, 71, 0.502)
Which input formats are supported?
You can choose RGB/RGBA, HEX/HEXA, or HSL/HSLA in the format selector.
Does it accept short HEX values?
Yes. Values such as #0FA and #0FA8 are expanded internally to full-length format.
How do I provide alpha/transparency?
Use alpha between 0 and 1, or percentages between 0% and 100%, depending on input style.
When do I get an invalid color error?
When channels are outside valid ranges, such as RGB outside 0-255 or HSL saturation/lightness outside 0-100%.
Is conversion done on a server?
No. All processing happens locally in the browser.