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.
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].
- 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.
- Add one accent. Choose one swatch from the complementary or split-complementary palette for buttons, prices and highlights.
- Add neutrals. A light tint for backgrounds and a dark shade for text give you a full palette from one hue.
- Check text contrast. Any colour you use for text should pass 4.5:1 on its background, or 3:1 for large headings [1].
- 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).
Add the palette file as a digital product in your store.

Shatla.io 5968ccf73d67, Add the product to your store page and share the store link in your bio.
See how Shatla.io's digital product sales work.
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
- Understanding Success Criterion 1.4.3: Contrast (Minimum), W3C Web Accessibility Initiative. Accessed .
- Web Content Accessibility Guidelines (WCAG) 2.2, W3C. Published . Accessed .
- Colour Wheel Combinations, Adobe. Accessed .
- A Guide to Complementary Colours, Adobe. Accessed .
- CSS Color Module Level 4, W3C. Accessed .
- Shatla.io features list (features.json), Shatla.io. Accessed .