What is this?
The cells in the eye that help us see color are called cone cells. Usually, people have three types of them, except color blind people. In rare cases, people called tetrachromats can have more than three. But three is most common.
Just as human eyes have three types of cone cell, computer LEDs come in three types: red, green, and blue (RGB). Different brightnesses of each type stimulate our three types of cone cells differently, creating the illusion of a single color. For example, red and green make yellow in the RGB system.
The brightness for each RGB color goes from 0 to 255. In the hexadecimal color system, each brightness is written as a hexadecimal number. For example, FF is 255 in hex. So to write the color blue, you want zero brightness (00) for red, zero brightness (00) for green, and full brightness (FF) for blue. That's how you get #0000FF, the hex code for pure blue. A lighter blue might be #A0A0FF, and a darker, more greenish blue might be #00A0C0. #FFFFFF is white and #000000 is black.
It's possible to build up an intuition for these hex codes, rather than seeing them as just numbers. This makes for cool party tricks like giving the hex code for the color of a table just by looking at it. Computers can go from hex codes to colors and back instantly, but can you? If you play this game, you will be able to. Best of all, you can learn cool new social media hashtags like #7DC845 and #510E3E.
Related Posts
- BrickChess0.5 — A chess engine with a lite version hosted online
- Black Queen — A minimax AI using probability for Black Queen, a card game similar to Hearts
- Playing with Sunshine — A simple interactive model for regional and global climate and greenhouse gases using the Stefan-Boltzmann law