Loading…

Developer tools10.11

Color Palette Generator

Build a color palette from a single color: complementary, analogous, triadic, monochromatic and more, with HEX codes and contrast info.

Back to Developer tools

HEX (#2563EB), rgb() or hsl().

The color directly across the color wheel, for maximum contrast.

This runs entirely in your browser. We don’t store any data.

Palette

Complementary
  • #2563EB

    hsl(221 83% 53%) · 5.2:1 contrast with white text

  • #EBAD25

    hsl(41 83% 53%) · 10.5:1 contrast with black text

How to use it

  1. 01

    Choose a base color with the picker, or type its HEX, rgb() or hsl() code.

  2. 02

    Pick a color scheme. A short note below each one explains when to use it.

  3. 03

    Copy individual colors with their buttons, or grab the whole palette as CSS variables for your stylesheet.

How it works

Color schemes are calculated in HSL (hue, saturation, lightness) by rotating the hue around the color wheel: 180° for complementary, ±30° for analogous, 120° and 240° for triadic, 150° and 210° for split complementary, and every 90° for tetradic. The base color’s saturation and lightness stay the same.

Monochromatic keeps the hue and steps the lightness from 20% to 80%, while “Shades and tints” mixes the color with black and with white — handy for button states and backgrounds.

Each swatch tells you whether text on top of it should be white or black, along with the WCAG contrast ratio. Accessibility guidelines call for at least 4.5:1 for normal text.

Examples

  • Complementary

    The complement of pure red, #FF0000, is cyan, #00FFFF.

  • Triadic

    Starting from red, the triadic scheme gives you the three primary colors of light: #FF0000, #00FF00 and #0000FF.

  • Brand colors

    Starting from the blue #2563EB, the monochromatic scheme gives you five blues, dark to light, for backgrounds, borders and text.

Frequently asked questions

Which color scheme works best for a website?

For most interfaces, use a main color with its monochromatic range for backgrounds and states, plus a complementary or split-complementary accent for your key buttons.

Why do some colors look dull?

Because the palette keeps the base color’s saturation. Start with a muted color and the whole palette will be muted too.