Publish and files

How to convert a hex colour to RGB

Convert a hexadecimal color to its RGB or HSL representation with PageUtil Hex to RGB. Review the resulting channel values before copying them into a stylesheet. Changing the notation preserves the represented color; it does not establish sufficient contrast with a background.

#RRGGBB maps to red, green, and blue channels from 0 to 255, and HSL is the same colour.
#RRGGBB maps to red, green, and blue from 0 to 255, and HSL is the same colour.

What to run

Open Hex to RGB. It stays in the browser.

How to read the result

#RRGGBB maps to three channels, 0–255.

HSL is the same colour in another model.

#RGB short form expands by doubling digits.

Alpha is only present if you entered it.

What to open next

Open Contrast Checker with the two colours you just converted. It stays in the browser.

References

Related tools

Frequently asked questions

What range are the red, green, and blue channels?

#RRGGBB maps to red, green, and blue from 0 to 255. HSL is the same colour.

How does the short #RGB form expand?

#RGB short form expands by doubling digits. Alpha is only present if you entered it.

Is HSL a different colour from the hex value?

HSL is the same colour in another model. #RRGGBB maps to three channels, 0–255.

Need help with a tool or found a bug?

Report an issue directly to engineering. No accounts required — all client data remains private on your device.

Report an Issue →