Six schemes, each one a set of angles
Hue is measured in degrees around a circle: red at 0, green at 120, blue at 240. Every scheme here is a list of rotations applied to your base color's hue, leaving its saturation and lightness alone.
- Complementary adds 180°, the point directly across the wheel.
- Analogous adds −30° and +30°, the two near neighbours.
- Triadic adds 120° and 240°, an equilateral triangle.
- Split complementary adds 150° and 210°, the two colors either side of the opposite point. It gives contrast with less tension than a direct complement.
- Tetradic adds 90°, 180° and 270°, forming a square.
- Monochromatic keeps the hue and makes five steps, dropping saturation by 15 points and raising lightness by 10 points each time, with lightness capped at 90%.
One blue, worked through
The default base color, #3b82f6, converts to hsl(217, 91%, 60%). Here is what the rotations produce:
Complementary #3c83f6 #f6af3c
Analogous #3c83f6 #3ce0f6 #523cf6
Triadic #3c83f6 #f63c83 #83f63c
Split #3c83f6 #f6523c #e0f63c
Tetradic #3c83f6 #f63ce0 #f6af3c #3cf652
Monochromatic #3c83f6 #78a5ed #adc5eb #dae3f1 #dee4ed
To verify the complementary result, add 180 to 217 to get 397, and subtract a full turn of 360 to get 37, an orange hue. Note how the triadic and tetradic sets all come out equally intense, because they share 91% saturation and 60% lightness. That is the mathematically tidy answer and rarely the finished design. Designers usually keep one color at full strength and mute the others.
The names under the swatches are broad hue bands. #f63c83 sits at hue 337 and is labelled Red although most people would call it a hot pink, so treat the names as rough signposts.
This is not the wheel from art class
Painters learn a red-yellow-blue wheel, on which blue's opposite is orange. Screens mix red, green and blue light, and on the HSL wheel used here, pure blue at 240° sits opposite pure yellow at 60°. A complementary pair from this page can therefore differ from a chart in a paint shop. Neither is wrong. They describe different ways of mixing color, and for anything shown on a screen, the HSL version is the one that corresponds to how the color is produced.
Harmony does not mean readable
A color wheel knows nothing about legibility. The WCAG accessibility guidelines define contrast as a ratio of relative luminance, (L1 + 0.05) ÷ (L2 + 0.05), where L1 is the lighter color. Normal text needs at least 4.5:1 and large text at least 3:1 to meet level AA. Running the palette above through that formula is revealing:
#3c83f6 on white 3.68:1 large text only
#f6af3c on white 1.89:1 fails
#f6af3c on black 11.11:1 passes
#3c83f6 on #f6af3c 1.95:1 fails
The last row is the surprise. Blue and orange are textbook opposites and look strongly different, yet their luminance is close, so blue text on an orange button is hard to read. HSL lightness is a poor guide here, since a yellow and a blue with the same L value have very different real brightness.
Do not let color carry meaning by itself either. Red and green status colors are hard to tell apart for many people with color vision deficiency, so add an icon or label, and preview your palette with the Color Blind Simulator.
Turning swatches into a working palette
A good interface usually needs fewer bright colors than a scheme generates. Choose one as the brand color for buttons and links, keep a second for highlights, and use tints from the Monochromatic scheme for backgrounds and borders. Interior designers have a rule of thumb for the balance, 60% dominant, 30% secondary and 10% accent, and it translates well to a web page.
The Color Formats panel gives the first swatch as HEX, RGB, HSL and HSV. For a CSS theme, HSL is often the handiest, because you can derive a hover state by changing only the lightness number. Pale or near-grey base colors give weak palettes, because rotating the hue of a low-saturation color changes very little, so begin with something saturated and tone it down afterwards.