HEX to RGB converter
Turn a colour code like #5b7cff into RGB.
- HEX
#5B7CFF - RGB
rgb(91, 124, 255) - HSL
hsl(228, 100%, 68%) - CSS
--brand: #5b7cff;
Lighter
This colour
Darker

Stuck, or not sure this is the right tool?Moose knows every tool here and can point you the right way.
How it works
- 1Paste your HEX code.
- 2Read the RGB value.
- 3Copy it.
Good to know
- A HEX code like #1E6FD9 and an RGB colour like 30, 111, 217 are two ways of writing the same colour.
- Website code and design apps often want one or the other.
Questions
Is it free?
Yes. Every tool on Moose is free, with no account, no daily limit and no watermark.
What does each number mean?
R, G and B are the amounts of red, green and blue light, each from 0 to 255.
More design tools
- Colour picker and converterPick a colour and get its HEX, RGB and HSL codes.
- Palette from a photoPull the main colours out of a photo or logo.
- Brand colour shadesLighter and darker shades of your brand colour.
- Contrast checkerIs your text readable on its background?
- Gradient makerSmooth colour gradients as CSS or a picture.
- Placeholder picture makerA plain picture at any size, with optional words.
