Color palette generator

Type or pick one colour to get complementary, analogous, triadic and split-complementary palettes, tints, shades and a monochrome set, each with HEX, RGB, HSL and WCAG contrast. Nothing leaves your browser.

Palettes from #1e90ff

Complementary (opposite hue, 180°)

  • #1e90ffrgb(30, 144, 255) · hsl(210, 100%, 56%)on white 3.23:1 (text 4.5:1 fail, large text 3:1 pass) · on black 6.48:1 (text 4.5:1 pass, large text 3:1 pass)
  • #ff8d1ergb(255, 141, 30) · hsl(30, 100%, 56%)on white 2.31:1 (text 4.5:1 fail, large text 3:1 fail) · on black 9.08:1 (text 4.5:1 pass, large text 3:1 pass)

Analogous (neighbours, ±30°)

  • #1e90ffrgb(30, 144, 255) · hsl(210, 100%, 56%)on white 3.23:1 (text 4.5:1 fail, large text 3:1 pass) · on black 6.48:1 (text 4.5:1 pass, large text 3:1 pass)
  • #1efffergb(30, 255, 254) · hsl(180, 100%, 56%)on white 1.25:1 (text 4.5:1 fail, large text 3:1 fail) · on black 16.79:1 (text 4.5:1 pass, large text 3:1 pass)
  • #1e1fffrgb(30, 31, 255) · hsl(240, 100%, 56%)on white 7.79:1 (text 4.5:1 pass, large text 3:1 pass) · on black 2.69:1 (text 4.5:1 fail, large text 3:1 fail)

Triadic (three evenly spaced, 120°)

  • #1e90ffrgb(30, 144, 255) · hsl(210, 100%, 56%)on white 3.23:1 (text 4.5:1 fail, large text 3:1 pass) · on black 6.48:1 (text 4.5:1 pass, large text 3:1 pass)
  • #ff1e90rgb(255, 30, 144) · hsl(330, 100%, 56%)on white 3.59:1 (text 4.5:1 fail, large text 3:1 pass) · on black 5.84:1 (text 4.5:1 pass, large text 3:1 pass)
  • #90ff1ergb(144, 255, 30) · hsl(90, 100%, 56%)on white 1.27:1 (text 4.5:1 fail, large text 3:1 fail) · on black 16.50:1 (text 4.5:1 pass, large text 3:1 pass)

Split-complementary (150° and 210°)

  • #1e90ffrgb(30, 144, 255) · hsl(210, 100%, 56%)on white 3.23:1 (text 4.5:1 fail, large text 3:1 pass) · on black 6.48:1 (text 4.5:1 pass, large text 3:1 pass)
  • #ff1e1frgb(255, 30, 31) · hsl(0, 100%, 56%)on white 3.84:1 (text 4.5:1 fail, large text 3:1 pass) · on black 5.45:1 (text 4.5:1 pass, large text 3:1 pass)
  • #fffe1ergb(255, 254, 30) · hsl(60, 100%, 56%)on white 1.07:1 (text 4.5:1 fail, large text 3:1 fail) · on black 19.44:1 (text 4.5:1 pass, large text 3:1 pass)

Tints (mixed with 25%, 50%, 75% white)

  • #1e90ffrgb(30, 144, 255) · hsl(210, 100%, 56%)on white 3.23:1 (text 4.5:1 fail, large text 3:1 pass) · on black 6.48:1 (text 4.5:1 pass, large text 3:1 pass)
  • #56acffrgb(86, 172, 255) · hsl(209, 100%, 67%)on white 2.40:1 (text 4.5:1 fail, large text 3:1 fail) · on black 8.74:1 (text 4.5:1 pass, large text 3:1 pass)
  • #8fc8ffrgb(143, 200, 255) · hsl(209, 100%, 78%)on white 1.76:1 (text 4.5:1 fail, large text 3:1 fail) · on black 11.87:1 (text 4.5:1 pass, large text 3:1 pass)
  • #c7e3ffrgb(199, 227, 255) · hsl(210, 100%, 89%)on white 1.32:1 (text 4.5:1 fail, large text 3:1 fail) · on black 15.86:1 (text 4.5:1 pass, large text 3:1 pass)

Shades (mixed with 25%, 50%, 75% black)

  • #1e90ffrgb(30, 144, 255) · hsl(210, 100%, 56%)on white 3.23:1 (text 4.5:1 fail, large text 3:1 pass) · on black 6.48:1 (text 4.5:1 pass, large text 3:1 pass)
  • #176cbfrgb(23, 108, 191) · hsl(210, 79%, 42%)on white 5.33:1 (text 4.5:1 pass, large text 3:1 pass) · on black 3.93:1 (text 4.5:1 fail, large text 3:1 pass)
  • #0f4880rgb(15, 72, 128) · hsl(210, 79%, 28%)on white 9.29:1 (text 4.5:1 pass, large text 3:1 pass) · on black 2.25:1 (text 4.5:1 fail, large text 3:1 fail)
  • #082440rgb(8, 36, 64) · hsl(210, 78%, 14%)on white 15.71:1 (text 4.5:1 pass, large text 3:1 pass) · on black 1.33:1 (text 4.5:1 fail, large text 3:1 fail)

Monochrome (same hue, lightness 20% to 80%)

  • #003466rgb(0, 52, 102) · hsl(209, 100%, 20%)on white 12.47:1 (text 4.5:1 pass, large text 3:1 pass) · on black 1.68:1 (text 4.5:1 fail, large text 3:1 fail)
  • #005ab3rgb(0, 90, 179) · hsl(210, 100%, 35%)on white 6.74:1 (text 4.5:1 pass, large text 3:1 pass) · on black 3.11:1 (text 4.5:1 fail, large text 3:1 pass)
  • #0081ffrgb(0, 129, 255) · hsl(210, 100%, 50%)on white 3.76:1 (text 4.5:1 fail, large text 3:1 pass) · on black 5.58:1 (text 4.5:1 pass, large text 3:1 pass)
  • #4da7ffrgb(77, 167, 255) · hsl(210, 100%, 65%)on white 2.53:1 (text 4.5:1 fail, large text 3:1 fail) · on black 8.28:1 (text 4.5:1 pass, large text 3:1 pass)
  • #99cdffrgb(153, 205, 255) · hsl(209, 100%, 80%)on white 1.67:1 (text 4.5:1 fail, large text 3:1 fail) · on black 12.53:1 (text 4.5:1 pass, large text 3:1 pass)

Harmonies turn the hue in HSL: new hue = (H + offset) mod 360, same S and L. Tint = colour + (255 − colour) × share; shade = colour × (1 − share), per RGB channel. Contrast = (L1 + 0.05) / (L2 + 0.05), L1 the relative luminance of the lighter colour; WCAG 2.2 asks 4.5:1 for normal text and 3:1 for large text, not rounded.

Results are straight HSL hue turns; design apps that use another colour wheel can give different colours. Nothing leaves your browser.

How does the colour palette generator work?

Type a HEX code such as #1e90ff (or 1e90ff, or the short #19f), or pick a colour with the colour picker. The seven palettes update at once, each swatch with HEX, RGB, HSL, contrast and a copy button.

Palette How the tool makes it
Complementary the base and the hue opposite it (hue + 180 degrees)
Analogous the base and its neighbours (hue − 30 and + 30 degrees)
Triadic the base and two hues a third of the circle away (+ 120 and + 240 degrees)
Split-complementary the base and the two hues beside its opposite (+ 150 and + 210 degrees)
Tints the base mixed with a quarter, a half and three quarters white
Shades the base mixed with a quarter, a half and three quarters black
Monochrome the same hue and saturation at five lightness steps, from dark to light

The hue offsets are arithmetic on the HSL colour circle that CSS uses [5], so the colours are exact and repeatable. Design apps that use a painter's colour wheel can suggest slightly different partners for the same base. A grey, black or white has no hue, so its harmonies are the same grey: the tool says so.

"Copy all as CSS variables" gives a :root { … } block with names such as --complementary-2. Nothing leaves your browser.

What are complementary, analogous and triadic colours?

Complementary colours are opposite each other on the colour wheel, such as blue and orange; analogous colours sit next to each other; triadic colours are three evenly spaced colours forming a triangle [3] [4].

  • Complementary colours are "positioned directly opposite each other on the colour wheel", like blue and orange, red and green, yellow and violet [4]. They give the strongest contrast of hue: use one as the main colour and the other for a call to action.
  • Analogous colours "sit adjacent to each other", typically 2 to 3 side by side [3]. They feel calm and related: good for backgrounds and a soft feed.
  • Triadic colours are three colours "positioned equidistantly around the colour wheel, forming an equilateral triangle" [3]. Lively; let one lead and use the other two in small amounts.
  • Split-complementary pairs the base with the two colours beside its opposite: almost as much contrast as complementary, easier to balance.
  • Tints, shades and monochrome keep one hue and change lightness, which is how you get light backgrounds and dark text colours from one brand colour.

In HSL, hue is an angle on a circle where red is 0 (and 360), green 120 and blue 240 degrees [5]. So "opposite" is 180 degrees away and a triad is 120 degrees apart.

How is the contrast of each swatch checked?

With the WCAG 2.2 formula: (L1 + 0.05) ÷ (L2 + 0.05), where L1 is the relative luminance of the lighter colour. Normal text needs at least 4.5:1, large text at least 3:1 [1] [2].

Result on white or black Meaning [1] [2]
4.5:1 or more passes for normal text (WCAG 2.2 level AA)
3:1 to under 4.5:1 passes only for large text: 18 point, or 14 point bold
under 3:1 fails for text; use it for shapes, borders or backgrounds with other text on them

Ratios run from 1:1 (the same colour) to 21:1 (black on white) [1]. WCAG says not to round: 4.499:1 does not meet 4.5:1 [1]. The tool cuts the ratio to two decimals instead of rounding, so a swatch that shows 4.49:1 is marked as failing.

The check is against plain white and black. If your text sits on another colour, compare those two colours with a contrast checker, or try the tint or shade next to it.

What does a worked example look like?

Base #1e90ff, a bright blue with hue 210 (209.6) degrees in HSL. Its complementary orange is #ff8d1e, and its triad adds #ff1e90 and #90ff1e. The blue reaches only 3.23:1 on white, so text needs its shade.

Swatch How HEX On white On black
Base typed #1e90ff 3.23:1 (large text only) 6.48:1 (passes)
Complementary 209.6 + 180 = 389.6, minus 360 = 29.6 degrees #ff8d1e 2.31:1 (fails) 9.08:1 (passes)
Triadic 2 209.6 + 120 = 329.6 degrees #ff1e90 3.59:1 (large text only) 5.84:1 (passes)
Triadic 3 209.6 + 240 = 449.6, minus 360 = 89.6 degrees #90ff1e 1.27:1 (fails) 16.50:1 (passes)
Shade (a quarter black) each channel × 0.75 #176cbf 5.33:1 (passes) 3.93:1 (large text only)

Reading the table: the bright blue works for buttons with black text, or for large headings on white. For body text on white, use the first shade, #176cbf. The orange makes a clear accent next to the blue, with dark text on it.

How do you choose brand colours for Instagram and your store?

Start from one colour that fits your work, take one accent from its complementary or split palette, take light and dark neutrals from its tints and shades, and check that your text colours pass 4.5:1 [1].

  1. Pick the base. Use a colour already in your logo, your product photos or your best-performing posts. Paste its HEX code, or get it from a photo with the colour palette generator from image.
  2. Add one accent. Choose one swatch from the complementary or split-complementary palette for buttons, prices and highlights.
  3. Add neutrals. A light tint for backgrounds and a dark shade for text give you a full palette from one hue.
  4. Check text contrast. Any colour you use for text should pass 4.5:1 on its background, or 3:1 for large headings [1].
  5. Save it. Copy the CSS variables, or the HEX codes into Canva or Figma brand colours, and use the same codes in every post template.

An Instagram grid looks consistent when the same two or three colours return in every post. Templates such as Instagram quote cards and a LinkedIn banner take your HEX codes directly.

Do it in Shatla.io

Shatla.io is one way to sell what you design with these colours, such as a palette pack or post templates, as a digital download from your store [6]. It sells digital products only [6].

If you make palette packs, Canva templates or Lightroom presets, you can sell them as files. Shatla.io lets you sell digital products from your store [6]. It sells digital files only: it does not print, stock or deliver anything [6]. For what each plan includes, see the price in your country. The digital product guide shows each step.

The screenshots come from the Shatla.io screenshot library: a placeholder store shown in the real app, with example names and numbers, not a customer (how we check).

  1. Add the palette file as a digital product in your store.

    A digital product page in a Shatla.io store: cover, price, buy button and description. Example account and example numbers.
    Shatla.io 5968ccf73d67,
  2. Add the product to your store page and share the store link in your bio.

See how Shatla.io's digital product sales work.

The full guide on Shatla.io

Frequently asked questions

How do I choose brand colors?

Start with one colour that already belongs to your work, add one accent from its complementary or split palette, and take a light tint and a dark shade as neutrals. Check that every text colour passes 4.5:1 on its background [1].

What is a complementary color palette?

Two colours directly opposite each other on the colour wheel, such as blue and orange [4]. In HSL that is a hue 180 degrees away, with the same saturation and lightness.

Can I make a palette from a HEX code?

Yes. Type it with or without the #, in the long form (#1e90ff) or the short form (#19f). The colour picker fills the same field.

Why do my results differ from other palette tools?

Tools use different colour wheels. This one turns the hue on the HSL circle CSS uses [5], so the result is exact arithmetic; tools based on a painter's wheel pick slightly different partners.

Sources

  1. Understanding Success Criterion 1.4.3: Contrast (Minimum), W3C Web Accessibility Initiative. Accessed .
  2. Web Content Accessibility Guidelines (WCAG) 2.2, W3C. Published . Accessed .
  3. Colour Wheel Combinations, Adobe. Accessed .
  4. A Guide to Complementary Colours, Adobe. Accessed .
  5. CSS Color Module Level 4, W3C. Accessed .
  6. Shatla.io features list (features.json), Shatla.io. Accessed .

Founder, Shatla.io

Founder of Shatla.io and The Diet Masters (1.8M+ YouTube subscribers).

Reviewed by Shatla.io Team before publishing.

View this page as Markdown