Pr

Pro Color Harmonies – A library for color harmonies

Hacker News

Pro Color Harmonies – A library for color harmonies

Hi HN, I built a TypeScript library for generating color harmonies that prioritise human perception over simple math. Most color libraries generate harmonies using simple hue rotations in HSL or HSV (e.g., Complementary = Hue + 180°). While mathematically "correct," this often produces unbalanced results—yellows become muddy browns, and perceived lightness varies wildly between hues. Pro Color Harmonies works entirely in the OKLCH color space. Instead of rigid formulas, it uses perceptual "styles" and "magic numbers" (heavily inspired by Ryan Feigenbaum's research) to generate palettes that feel naturally balanced. Key Features: - Muddy Zone Avoidance: The algorithm actively steers hues away from unappealing areas (like dark, desaturated yellows). - 4 Harmony Styles: Instead of just one "Triadic" formula, you can choose between Square (geometric), Triangle (balanced), Circle (expressive), and Diamond (luminosity-aware for UIs). - Modifiers: Includes post-processing algorithms (Sine, Wave, Zap, Block) to add organic variation and texture to the generated scales. It's written in TypeScript, has zero dependencies for the core logic, and is MIT licensed. The demo lets you tune explore the capabilities of the lib and shows you how to call the function if you scroll down. https://github.com/meodai/pro-color-harmonies I'd like to hear your feedback on the generated palettes and especially the API.

Share card

Actual performance

1points
1comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
69%69% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: using · Missing: mac, agents, macos
66%66% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoStrong fit for a featured deal · Missing: plus, platform, intuitive
54%54% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
47%47% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
39%39% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

A
A C++ color library48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A C++ color library

Hacker News1
Co
Color Contrast45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Color Contrast

Hacker News4
Co
Color Circular Weaving (Petros Vrellis)45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Color Circular Weaving (Petros Vrellis)

Hacker News1
Co
Color Cube48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Color Cube

Hacker News1
Co
Color War57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Color War

Hacker News29
caramel color
caramel color21%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

caramel color

Indie Hackers
An
An AI Color Grader – Pico38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An AI Color Grader – Pico

Hacker News5
A
A theme color extracting library implemented in C53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A theme color extracting library implemented in C

Hacker News25
Wo
Wonder Color – Text to Color, Everything is Supported49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wonder Color – Text to Color, Everything is Supported

Hacker News4
Wo
Wonder Color – Text to Color, Everything is Supported49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wonder Color – Text to Color, Everything is Supported

Hacker News19