3.1 Color Systems
Color on the Web
Section titled “Color on the Web”As you can see in the case study, color is an essential part of a brand identity. Color enabled xtine’s project to reference the original while adding additional information to transform it into a form of commentary.
A color model explains how colors interact. The colors you see when you print a document or mix paint come from light reflecting off the pigments. As you add more pigments to a material (like paper or canvas) it becomes darker, even muddy. Thus the four primary pigments in CMYK (Cyan Magenta Yellow Black) printer ink is an example of the subtractive color model.
Alternately, in the additive color model used by computer screens and digital cameras, light is mixed together, rather than pigments, to produce the color humans perceive. Additive color is based on 256 possible values for each channel in the RGB (red, green, and blue) color space. Computers store and use binary data so these values range from 0-255, which can be seen in the below table.
Color values expressed in RGB, Hex, and CSS. Each rule in the CSS column will create the same color in the browser.
Explore Color in Figma
Section titled “Explore Color in Figma”Play with additive color in Figma’s color selector.
- Open Figma and create a shape.
- With the shape selected, click the color box in the fill option on the right panel.
- In the panel that opens, change the color system from Hex to RGB to show the red, green, and blue values.
- Drag the circle in the color picker to the bottom left corner to see RGB values change to the minimum values
0,0,0. Then drag it to the top left to see maximum values for RGB255,255,255. Note that increasing the values in each channel results in colors that appear lighter. For example, when all three are set to the maximum amount of light255,255,255, the result is white, while0,0,0is black. - Change the color system back to Hex. The hexadecimal number system is another popular way to denote colors in CSS. Each character in the hexadecimal system uses 16 possible values, from
0-9, followed by alphabetic charactersA-F. With hexadecimal color, characters 1-2 represent red, 3-4 are green, and 5-6 are blue. Explore the equivilant values for the same colors. - Explore the table while you continue to play.
Alpha Channel
Section titled “Alpha Channel”The colors discussed so far are all opaque. To control transparency of your color you can add a fourth alpha channel to the RGB colors. To do this in CSS use either the rgba() function (the fourth channel is a value from 0-1) or the HEXA notation which adds a 7th and 8th character to your hexadecimal color values.
.red50pct { color: rgba(255, 0, 0, 0.5); }.red50pct { color: #ff000080; }Color Palette Generators
Section titled “Color Palette Generators”There are many websites where you can see the relationship between these, including color palette generators like rgbacolorpicker.com and coolors.co