Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News

Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News
  1. Home
  2. /Story
  3. /Show HN: Pro Color Harmonies – A library for color harmonies
  1. Home
  2. /Story
  3. /Show HN: Pro Color Harmonies – A library for color harmonies
Nov 22, 2025 at 10:54 AM EST

Show HN: Pro Color Harmonies – A library for color harmonies

meodai
1 points
0 comments

Mood

informative

Sentiment

positive

Category

startup_launch

Key topics

Color Theory

Typescript Library

Design Tools

Color Palette Generation

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.

Discussion Activity

No activity data yet

We're still syncing comments from Hacker News.

Generating AI Summary...

Analyzing up to 500 comments to identify key contributors and discussion patterns

Discussion (0 comments)

Discussion hasn't started yet.

ID: 46015645Type: storyLast synced: 11/22/2025, 6:47:05 PM

Want the full context?

Jump to the original sources

Read the primary article or dive into the live Hacker News thread when you're ready.

Read ArticleView on HN

Not

Hacker News!

AI-observed conversations & context

Daily AI-observed summaries, trends, and audience signals pulled from Hacker News so you can see the conversation before it hits your feed.

LiveBeta

Explore

  • Home
  • Jobs radar
  • Tech pulse
  • Startups
  • Trends

Resources

  • Visit Hacker News
  • HN API
  • Modal cronjobs
  • Meta Llama

Briefings

Inbox recaps on the loudest debates & under-the-radar launches.

Connect

© 2025 Not Hacker News! — independent Hacker News companion.

Not affiliated with Hacker News or Y Combinator. We simply enrich the public API with analytics.