How to use HEX to RGB Converter
- Enter a HEX code with or without the # sign.
- Read the RGB values.
- Copy the rgb() function for your CSS.
About this tool
A HEX code is three bytes written in base 16: the first pair is red, the second green and the third blue. Shorthand codes such as #fc0 expand to #ffcc00 by doubling each digit.
RGB values run from 0 to 255 per channel.
Frequently Asked Questions
- What is #ffffff in RGB?
- rgb(255, 255, 255), which is white.
- Do I need the # sign?
- No. The converter accepts codes with or without it.
Related tools
- RGB to HEX ConverterTurn red, green and blue values into a HEX color code.
- Color ConverterPaste a color in any format and see it in all the others.
- Color Contrast CheckerTest whether your text and background colors are readable for everyone.
- Color Palette GeneratorBuild a harmonious palette starting from a single color.
- Color WheelSee where your color sits on the wheel and how its harmonies relate.
- Shades and Tints GeneratorCreate a scale of lighter and darker versions of one color.