liveBook · Manning

Hue

As explained in Web Design Playground

A color dimension that identifies the perceived type of color, such as red or blue, independent of saturation or lightness.

Hue is the part of a color that tells you whether it looks red, green, blue, or somewhere between. Picture a color wheel: hue is your position around it. Saturation controls how pure or gray that color looks; luminance controls how light or dark it looks. section 17.1

To choose a hue, start with these positions on the wheel:

Make red text, then find its partner

In CSS, `h1 { color: hsl(0, 100%, 50%); }` makes headings red: the first number chooses the hue, while the percentages set saturation and luminance. Change the hue to 180 for cyan. Red and cyan are complementary colors because their hues sit 180° apart. Try using one as your page’s main color and the other as an accent. section 17.6 section 17.15

Want to experiment? Change only the first number in `hsl()` and watch the color change. For a page design, try sticking to two or three hues rather than a dozen. section 17.6 section 17.15

How Web Design Playground covers it

How deep it goes
Defines hue in degrees and shows its place in hsl() without exploring color-model internals.
Examples
Uses red, green, and blue wheel positions, CSS headings, and a red-and-cyan complementary pair.
What you can do after
Apply it via CSS hsl() to choose a hue and pair complementary colors in a page design.
How it connects
Links hue to saturation, luminance, the color wheel, complementary colors, and CSS hsl().

Also explained in

Compare how 6 books explain hue →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground. The section links point to the parts of the book it draws on.