1. Where the palettes come from
The library is written by the site's author, not scraped from other tools and not a
live feed of visitor uploads. Palette sets are produced with the generator scripts in
scripts/ and src/lib/gen_palettes.py, then committed as typed
data modules (src/lib/palettes*.ts). Each record carries a name, four or
five hex values in role order (background, accent, secondary, body text), mood/season/
use-case tags, and its own prose.
Generation is constrained, not random: every mood maps to hue ranges, a saturation band
and a lightness ladder, so a "night" palette cannot come out as a pastel mid-tone set.
Each candidate is scored by the harmony function below and the best-scoring candidate
is kept.
What we don't claim: that every palette is a unique, hand-art-directed
masterpiece. The prose on palette pages is written from a small set of shared sentence
shapes filled with that palette's own hex values, descriptors and contrast numbers. It
is accurate and specific to each palette, but it is not unique editorial writing for
all 2,720 entries. That is a real limitation of the library, and it is
the main thing we are working on.
2. How a palette is scored
The scorer lives in src/lib/colorTheory.ts and weights five properties of
the finished set:
- Lightness spread (30%) — a dark-to-light ladder, so the colors can actually hold different UI roles.
- Lightness collisions (20%) — two slots within 8% lightness of each other read as mud, and are penalised.
- Hue relationship (20%) — a tight hue family or a well-spread wheel both score well; muddy in-betweens score lowest.
- Saturation coherence (15%) — designed palettes sit in one saturation band; a wild per-slot spread looks accidental.
- WCAG bonus (15%) — a light/dark pair that clears 4.5:1 makes the palette usable for real text.
The generator tries up to 24 candidates per request and returns the highest-scoring
one, stopping early once a candidate clears 0.78. The harmony rule displayed on a
palette page is derived from the hue positions of that palette's own colors, so you can
check the claim against the swatches.
3. How the WCAG grade is computed
Relative luminance and contrast ratio are calculated from the hex values using the
WCAG 2.1 formulas, and the body-text color (slot 4) on the background color (slot 1) is
the pair that produces the grade shown on cards and palette pages: 7:1 or better is
AAA, 4.5:1 or better is AA, anything below is Fail.
That grade is computed at build time from the palette itself, by one function used by
every card, listing and palette page. It used to be read from a stored column that
disagreed with the real ratio on most of the library; that column is no longer shown.
Every palette page also prints its full contrast matrix — each color as text on every
other color as background — so you can verify any grade without trusting us.
A grade describes one pair, not the whole palette. A neon set can be "Fail" for body
text and still be perfectly usable for illustration or accents.
4. Duplicates and unique URLs
The library is deduplicated by slug when it loads, so each palette URL appears exactly
once and no page is built twice. We do not claim that every color set
is unique: some entries share the same four hex values under different names, and some
palette files re-declare earlier records that the loader then collapses. Cleaning those
up is ongoing work, not a finished feature.
5. Community submissions
The upload page is real: it writes your palette (name, colors,
mood tags) to our database with an is_approved = false flag. What does not
exist is a review pipeline. There is no moderation dashboard, no automated theory or
accessibility gate on incoming palettes, and no queue that publishes on approval.
In practice a submission is a private suggestion that a human may read and add by hand.
Most are not published. We don't promise a response, a timeframe, or publication — and
the site does not present any palette as "community-made" because it does not record
who submitted what.
6. The numbers on this site
Counts such as the library size are computed from the palette data at build time, so
they cannot drift away from what is actually published. The site does not display save
or copy counts, popularity rankings, user totals or "updated daily" claims, because
none of those are measured. If a number appears on ihatecolors, it is either computed
from the data or it is not there.
7. Corrections
If a hex value is wrong, a mood is mislabelled, or a contrast claim doesn't hold up,
tell us at support@ihatecolors.com or via
the contact page. Factual corrections (hex codes, ratios, tags)
take priority over new content.
Licensing and reuse are covered in the FAQ: individual color values
can't be copyrighted, so every palette here is free for personal and commercial use.