PixKit

Home / All Tools /Utility

Color Scheme Generator

Feed in one seed colour or sample an image to get six harmonies, each swatch labelled with WCAG contrast and grey-level separation.

✓ Local processing · No uploads · No signup

Aa

Accepts #3B82F6, rgb(), hsl(), oklch() — or a colour name such as coral

System picker

Drop an image to sample, or click to browse

Optional: drop an image, then click the canvas or a candidate colour

Harmony

    Real-world uses

    • A #0EA5E9 brand colour needs a button set. The base card says white text lands at 2.77:1 — under even the 3:1 large-text floor — while black reaches 7.58:1, so keep the fill and make the label dark, then use the darker accent for the pressed state instead of eyeballing brightness by hand.
    • A new category page has nothing but a product photo. Drop it in, click the product itself for a seed, and take the two mono steps as page tint and card border. Both grey-level gaps clear 15, so the layout still holds up in print and for colour-blind readers.

    Limits: Hue rotates on the HSL wheel, matching Figma and Adobe Color, so a complement is 180° on that wheel rather than 180° at equal perceived lightness (that is the OKLCH approach, better suited to gradient interpolation). Achromatic seeds — black, white, greys — make all six harmonies look alike, and the page says so. Sampling an image reads the pixels of a 480px preview: fine for flat colour, but fine gradients and noise can be a step or two off; use the eyedropper for exact single-pixel values. Contrast follows the WCAG 2.x relative-luminance formula and does not always agree with APCA.

    Related tools:Extract every dominant colour from an imageRun a full colour-blindness simulation

    How it works

    1. Give it a seed: paste HEX, rgb(), hsl() or oklch(), or just type a colour name such as coral or teal; or drop in an image and click anywhere on the canvas, or use one of the three candidate colours
    2. Switch between the six harmonies at any time; each card shows its ratio against the base plus the grey-level difference, and the base swatch spells Aa in whichever of white or black it should carry
    3. Export CSS variables or JSON. The names are fixed — --color-base, --color-accent-1, --color-soft, --color-on-base — so you can paste them straight into a stylesheet

    FAQ

    Why rotate hue in HSL rather than OKLCH?

    Because "complementary" and "triadic" are angles on a colour wheel, and the wheels in Figma and Adobe Color are HSL/HSV. Compute in OKLCH and the same seed yields a complement at a different hue angle, which reads as a bug when compared side by side. OKLCH shines at perceptual uniformity — gradient interpolation, lightness changes without hue drift — but that is not the question here.

    Is the grey-level difference the same as a colour-blindness simulation?

    No. It is the distance between two colours on the OKLab lightness axis, times 100 — it answers whether they stay distinct once the hue is gone. That is a necessary condition: too small a gap and red-green colour blindness, mono printing or sunlight will all flatten them together. It is not a simulation, though. Colour blindness does not only cost lightness, and some pairs differing in lightness still collapse. For a verdict, run the simulator per type; this is an early warning.

    Can the generated scheme go straight into production?

    Treat it as a starting point, not an answer. It guarantees the hue relationships hold and that contrast and separation are measurable, but it knows nothing about your brand rules, illustration style or page hierarchy. Above all, do not rotate a brand hue to make a harmony work — change lightness, saturation and how much area each colour takes. The ratios on each card are the basis for that call, not a seal of approval.

    How is this different from the palette extractor?

    The palette tool answers which colours the image actually contains, listing five to eight dominants with their shares — descriptive. This one answers how to build around a single colour, producing a scheme with role labels — prescriptive. Uploading an image only picks a seed here; the derivation is independent of it, which is why typing a value by hand gives the same result.

    Related tools