The RGB colour model is the foundation of all digital colour. Every pixel on your screen is a combination of Red, Green and Blue light at varying intensities. Learn how RGB works, explore common values and use the interactive mixer below.
Drag the sliders to mix Red, Green and Blue channels (0-255 each). The live preview shows the resulting colour with its HEX code.
RGB is an additive colour model in which Red, Green and Blue light are combined in various proportions to reproduce a broad range of colours. The model is called "additive" because adding all three primary colours at full intensity produces white light, while the absence of all three produces black.
Each channel in the standard RGB model uses 8 bits of data, providing 256 discrete intensity levels (0 to 255). With three independent channels, the total number of representable colours is 256 × 256 × 256 = 16,777,216 — often referred to as "True Colour" or "24-bit colour". This is the native colour space of virtually all digital screens including computer monitors, smartphones, tablets, TVs and LED displays.
RGB colour values are expressed in several formats: as a triplet of decimal numbers (e.g. 255, 99, 71), as a HEX code (#FF6347) or as a CSS function (rgb(255,99,71)). All three representations describe the same colour. The HEX format is most commonly used in web development, while the decimal triplet is preferred in image editing software and programming.
A reference table of 20 standard colours with their RGB values, HEX codes and colour swatches.
| Swatch | Name | R | G | B | HEX |
|---|---|---|---|---|---|
| Black | 0 | 0 | 0 | #000000 | |
| White | 255 | 255 | 255 | #FFFFFF | |
| Red | 255 | 0 | 0 | #FF0000 | |
| Lime | 0 | 255 | 0 | #00FF00 | |
| Blue | 0 | 0 | 255 | #0000FF | |
| Yellow | 255 | 255 | 0 | #FFFF00 | |
| Cyan | 0 | 255 | 255 | #00FFFF | |
| Magenta | 255 | 0 | 255 | #FF00FF | |
| Silver | 192 | 192 | 192 | #C0C0C0 | |
| Gray | 128 | 128 | 128 | #808080 | |
| Maroon | 128 | 0 | 0 | #800000 | |
| Olive | 128 | 128 | 0 | #808000 | |
| Green | 0 | 128 | 0 | #008000 | |
| Purple | 128 | 0 | 128 | #800080 | |
| Teal | 0 | 128 | 128 | #008080 | |
| Navy | 0 | 0 | 128 | #000080 | |
| Orange | 255 | 165 | 0 | #FFA500 | |
| Coral | 255 | 127 | 80 | #FF7F50 | |
| Gold | 255 | 215 | 0 | #FFD700 | |
| Tomato | 255 | 99 | 71 | #FF6347 |
Explore other colour systems and conversion tools on Color.Codes.in.