RGB to HEX Converter — CSS Colour | How to use and interpret results
Assemble red, green and blue values from 0 through 255 into six-digit HEX notation. It helps transfer numerical RGB values from design software into CSS.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Numbers stay on your device. Nothing is sent to a server.
How to use this tool
Enter R, G and B in order and check the range. Fractional channels are rounded to integers; convert a normalized 0–1 source to the 255 scale before entering it.
Results and examples
45, 212 and 191 produce #2dd4bf. Swapping channel order changes the colour, so compare the result's RGB row with the original values.
Worked example
45, 212 and 191 produce #2dd4bf. Swapping channel order changes the colour, so compare the result's RGB row with the original values.
Limitations
- Alpha, CMYK and wide-gamut profiles are not accepted.
- This changes sRGB notation rather than measuring or calibrating colour.
Fields
| Field | Guidance and constraints |
|---|---|
| Red | Accepted range: 0–255 · Input step: 1 |
| Green | Accepted range: 0–255 · Input step: 1 |
| Blue | Accepted range: 0–255 · Input step: 1 |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
Which HEX code matches 45,212,191?
45, 212 and 191 produce #2dd4bf. Swapping channel order changes the colour, so compare the result's RGB row with the original values.
Can I enter normalized 0–1 channels directly?
Alpha, CMYK and wide-gamut profiles are not accepted. This changes sRGB notation rather than measuring or calibrating colour.
Related tools
You do not need to start over. Continue with the tool that fits your next step.