The English, American or U.S. (United States) Flag De Nederlandse Vlag, de vlag van Nederland

Choosing Colors with the RGB (red-green-blue) Generator

How does RGB work?

Every color on a computer is a mix of 3 colors of light: red, green and blue (magnify your monitor with a magnifier and see). To write a color down, you have to know how much red, green and blue that color has. You can find that out with the color-generator below. There are 2 ways to write an RGB-color down: in a hexadecimal, or in RGB.

If you write a color down in a hexadecimal, always start with the '#'. The computer then knows you are writing the color in a hexadecimal. After that, you write down how much red, green and blue the color contains, in hexadecimal in 2 numbers. A hexadecimal color always looks like this: #RRGGBB.

Tip: sometimes you can write a hexadecimal color shorter, by not writing down double numbers. #FF8800 is for example the same as #F80, and #00FF00 is the same as #0F0.
Pay attention: this can only be done if all 3 colors (red, green, blue) have double numbers. #FF8812 is for example not the same as #F812!

Writing down a color in RGB is easier, it looks like this: RGB(R,G,B). Here, the R is the amount of red (just in decimal), G is the amount of green and B is the amount of blue.

Color generator:

Click on the color you want, and you get the HTML color:

Color:
Red:
Green:
Blue:




Hue:
Saturation:
Luminance:





Hexadecimal:
RGB:
HTML-color:

Was this information useful? If so, please consider linking to this website:
Thank you!