Did you know that website colors typically are not specified in English? When our designers build your website, they will use a set of codes for your brand’s color scheme. The most common version of brand color codes are called “hexadecimal.”
Hexadecimal Colors
There are actually 16,777,216 different colors that can be used to style your website. The human eye can only distinguish between roughly 10 million different colors, so your website’s colors are actually more specific than your eyes can even differentiate.
If you don’t already know your hexadecimal colors, no problem! Our designers can extract your brand’s color codes from your logo, your old website, or even a photograph that includes the shades you’d like to use for backgrounds, text, etc.
RGB Colors & RGBA Colors
Another color format that our designers often use is called “RGB” or “RGBA.”
RGB = Red, Green & Blue
RGBA = Red, Green, Blue & Alpha
“Alpha” refers to transparency. For example we might place text over a photographic background and allow some of the background to be visible through that text. To achieve that, we would lower the alpha value of that text color. Alpha of “0.5” would be 50% see-through and alpha of “0” would be totally clear.
As with hexadecimal colors, if you have your RGB values handy, that’s great! If not, we can calculate them very easily.
Website Color Syntax
This snippet of code show several different ways to make white text:
// hexadecimal
color: #fff
// rgb
color: rgb(255,255,255)
// rgba
color: rgba(255,255,255,0.75)
// color name
color: white
//hsl
color: hsl(0, 0%, 100%)
//hsla
color: hsl(0, 0%, 100%,0.95)
Website Color Methods We Use Less Often
If you noticed the last three declarations in the example above, those are less common ways of specifying a color: HSL and color names.
Color Names
In web design, you can actually specify a color simply by simply writing its name. In theory it sounds like doing so would be the ideal way of doing things, but using color names rather than color codes limits you to 140 different standardized colors. For example, if you want a specific shade of red, you’re out of luck with this method. The color names system has a preset value for common shades like “white” and “black,” plus plenty of fun ones like “peachpuff” and “papayawhip,” but they might not match your logo or other marketing materials as well as you would like.
HSL Colors & HSLA Colors
HSL & HSLA are additional ways of specifying color via providing the browser “hue, saturation, and lightness,” with the latter format also offering “alpha” (opacity). You will see HSL used in some scenarios, but it isn’t very common.