How the palette is built
Everything here is worked out in OKLCH: lightness, chroma (how colorful) and hue (the angle on the color wheel). OKLCH is designed so that equal steps look like equal changes, which makes even scales and balanced harmonies easier than in RGB or HSL.
The tints and shades scale runs from 50, nearly white, to 950, nearly black. Your base color takes the step closest to its own lightness; lighter steps move towards white with less and less chroma, darker steps towards a deep shade of the same hue. Colors that fall outside what screens can show (sRGB) lose chroma at the same lightness and hue until they fit.
Harmonies and colors from an image
A harmony turns the hue around the color wheel and keeps the lightness and chroma of the base, so the new colors look about as strong as the original.
From an image, the tool groups the pixels of a small copy into clusters of similar colors (k-means in OKLab) and averages each cluster. The share is the part of the image a cluster covers.
Complementary: hue + 180° Analogous: hue − 30°, hue + 30° Triadic: hue + 120°, hue + 240° Split complementary: hue + 150°, hue + 210° Base hue 35°: complementary 215°, triadic 155° and 275°
Palettes in client and brand work
A palette is most useful when it covers the plain jobs as well as the bright ones: backgrounds, borders, body text and hover states. A scale from one brand color handles those, and a harmony adds accents.
- Start from the client’s main brand color and use the scale for surfaces, borders, text and states
- Keep harmony colors for accents, highlights and charts rather than large areas
- Check text and background pairs with a contrast checker: WCAG asks for at least 4.5:1 for normal text
- Pull colors from the client’s photos or moodboard to start from material they already use
- Hand over the CSS or JSON with the design files, so developers use exactly the same values