How to use RGB to HEX Converter
- Enter red, green and blue values between 0 and 255.
- Read the HEX code and preview the color.
- Copy the code.
About this tool
Each channel from 0 to 255 is converted to a two-digit base-16 number and the three are joined, so rgb(37, 99, 235) becomes #2563eb. Values outside the 0 to 255 range are rejected.
HEX is the most compact way to write a color in CSS and design tools.
Frequently Asked Questions
- What is rgb(0, 0, 0) in HEX?
- #000000, which is black.
- Can I include transparency?
- HEX supports alpha as a fourth pair of digits (8-digit HEX) but this tool converts opaque colors.
Related tools
- HEX to RGB ConverterTurn a HEX color code into red, green and blue values.
- 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.