CSS COLORS
We often over look our CSS skills. So I am here to expand on the simple topic of colors.
What are the basic color options?
Hexadecimal
RGB
Named Colors
What is a Named color?
A named color is a preset list of colors that are associated with a name
How many named colors are there?
147
Here is a chart with all the named colors -https://www.quackit.com/css/color/charts/css_color_names_chart.cfm
What is a RGB color?
RGB consists of 3 digits each representing RED GREEN or BLUE.
example- rgb(0,0,0) BLACK
How many RGB colors are there?
6,777,216 possible combinations.
Get Mickey Partlow’s stories in your inbox
Join Medium for free to get updates from this writer.
What is Hexadecimal?
Hexadecimal is a number system that uses base 16 . Base 16 — or hexadecimal — uses characters 0–9 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen. These are the characters we use when specifying a color in CSS.
Like RGB hexadecimal uses the red, green, blue properties to construct color mixtures.
A hex triplet is a six-digit, three-byte hexadecimal number used in HTML, CSS, SVG, and other computing applications to represent colors. The bytes represent the red, green and blue components of the color. One byte represents a number in the range 00 to FF (in hexadecimal notation), or 0 to 255 in decimal notation.
example is #ff00bb
There is a 8 digit hex code that includes transparency
rgba()
#RRGGBBAA
R — Red
G- Green
B-Blue
A-Transparency
Transparent Keyword
The transparent keyword was first introduced in CSS1. However, CSS1 allowed it to be used for the background-color property only.
CSS2 allowed it to also be used on the border-color property.
CSS3 extended it further to allow the transparent keyword to be used with all properties that accept a color value.







