About this tool
Paste a colour — #rgb, #rrggbb, #rrggbbaa, rgb(), rgba(), hsl() or hsla() (comma or space syntax) — or pick one with the colour picker. You get the HEX, RGB and HSL strings, each with a copy button, plus red, green, blue and opacity tiles and a preview drawn over a checkerboard so transparency is visible.
Hex is uppercase by default (a lowercase-hex switch is there), HSL is shown in whole numbers, and alpha is written to two decimals — the page notes that turning rounded HSL back into RGB can differ by 1 in a channel.
How to use it
- Paste a colour code, or use the Pick control.
- Copy the HEX, RGB or HSL value you need.
- Switch hex case (upper or lower) if the target format requires it.
Frequently asked questions
Which formats can it read?
Hex (with or without #, 3, 4, 6 or 8 digits), rgb()/rgba() and hsl()/hsla(), in comma or space syntax.
Does it handle transparency?
Yes — alpha is shown as an opacity percentage and the preview sits on a checkerboard so you can see it.
Does it work without internet?
Yes. Open this page once while you are online; after that it keeps working without internet. We tested this with the network switched off.
Are my files uploaded?
No. This tool runs in your browser on your device, so what you enter or open here is not sent to our server.
Is it free?
Yes. This tool is free to use and needs no account.