RGB to HEX converter
Turn an RGB colour into a code like #5b7cff.
- 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 RGB colour.
- 2Read the HEX code.
- 3Copy it.
Good to know
- An RGB colour like 30, 111, 217 and a HEX code like #1E6FD9 are the same colour written two ways.
- Most website builders ask for the HEX code.
Questions
Is it free?
Yes. Every tool on Moose is free, with no account, no daily limit and no watermark.
What's in a HEX code?
Three pairs of letters and numbers after the #: one pair each for red, green and blue.
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.
