RGB to HEX conversion

Converts an RGB-color into HEX notation.

R
G
B

 

RGB HEX

See also

HEX to RGB conversion

Additional information

The RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three additive primary colors, red, green, and blue. Read more

Source code

JavaScript source code (rgb-to-hex-conversion.js)

Keywords

color code rgb hex conversion value convert format