When ns was in an initial grade ns was presented v a distressing problem for a 6 year old. My father, a tv technician, had taught me that the main colors room Red, Green and Blue. Mine teacher insisted that it was Red, Yellow and Blue. A few years later on as my analysis level enhanced I fight upon the prize - both space right relying on what you are talking about.

You are watching: Which of these is not a primary color of light

Red, Yellow and also Blue are the major colors the pigment. Yet Red, Green and Blue are the primary colors of light. If you are coming to internet page architecture from a print background this difference is very important to learn due to the fact that color codes on the web mix light, not paint.

In CSS you’ve no doubt ran throughout color codes. #f00 is red, and also #900 is a darker the shade of red. Finding out to mix and alter these codes without resorting come an eyedropper and art device is a advantageous skill, yet to teach this ability I need to define why we evil programmers did things this method (I to be a programmer with an art degree - rather rare i’ve found).

Colors top top the net these days room in 24-bits. For this reason what does the mean? Well, a little is a 1 or 0 worth in the computer. A 24 little value way that each color has 24 of these 1 or 0 switches involved.

Why 24? Well, bits aren’t that advantageous by themselves so they room usually grouped together in bytes. Bytes are frequently 8 bits long, definition a byte deserve to store a worth 0 to 255. (storing 256 needs a 9 digit base 2 number as 256 is 2 come the strength of 8 - the very first digit is 2 come the strength of 0).

24 little bit color because one byte is used for each of the three major colors the light. Now writing the end 000000000000000000000000 for a shade code is, ahem, cumbersome - therefore coders long back (back in the 50’s) offered octal and also hexadecimal (colloquially “hex”) numbers. A hex number deserve to stand in for 4 digits of a binary number, a two digit hex number have the right to represent all possible values that a byte indigenous 00 come ff.

(The factor for hexadecimal and also not decimal is the you don’t have actually do any kind of carrying when converting the numbers - it’s straightforward to do for human or computer)

Ok, i hope i haven’t fear off all the developers with all the math below - ns trying to acquire to a point. The password you view in CSS and elsewhere divide up as follows, the an initial two digits are the red value, the second two are the environment-friendly value and the last two space the blue – so


That’s 24-bit. Older computer systems can’t display screen that numerous colors and also many the them whereby still roughly when the web was born so CSS also accepts a 12bit color designation.

See more: How Much Is 750 Ml In Gallons, How Many Milliliters (Ml) In A Gallon

Personally I have tendency to write out colour in 12bit fashion. #ff0000 is harder to check out than #f00, further the difference between #ff0000 and also #fd0000 is very, really slight and also not most likely to matter enough. Also, 12bit values are taken into consideration “web safe” colors though that distinction hardly matters as much as it once did, however if an older device minimal to web safe colors displays your web page it will certainly round off a 24 bit shade assignment to the nearest 12bit value.

Now, part demonstrations due to the fact that vbulletin does permit users to write-up colors

#F00 - Red#0F0 - Green#00F - BlueThe an additional colors is wherein things begin getting negative if you room coming indigenous a print background…#FF0 - Yellow#F0F - Magenta#0FF - Cyan

Yellow us all know. Cyan is “sky blue” Magenta is this weird climbed shade of purple. Orange is i do not have anything to it is in seen. Yet don’t despair, mixing irradiate is not also unlike mix paint. Also better, it isn’t damaged by mix - obtain it wrong and you just change the password


Saturation is the simplest to manipulate because that primaries and second colors, simply walk v the values. Below we’ll go v magenta in measures of two.000202404606808A0AC0CE0EF0F

(Note, A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15 in hexadecimal.)

If the base shade isn’t a primary and tertiary then stepping through saturation values is tricker due to the fact that you need to be proportionate. Orange is #F80. To action through it’s saturation shades each time we include 1 come the green value we add 2 come the red as follows.000210420630840a50c60e70f80

Finally shifting to complementary colors is easy if you room willing to learn just how to subtract in hexadecimal - you just subtract the value in hex native FFF (white) to obtain the compliment. Red and Cyan room compliments in light - so FFF - F00 = 0FF. Orange (F80) has actually a compliment of baby Blue (07F)

(Convert come decimal until you’re provided to it. Orange is 15,8,0; to acquire it’s compliment 15-15, 15-8, 15-0. This gives us 0, 7, 15, the 15 converts earlier to F for 07F)