Show HN: An OKLCH-based perceptually uniform color system/theme builder
Mood
informative
Sentiment
positive
Category
startup_launch
Key topics
Color Theory
Design Tools
Accessibility
Web Development
UI/UX
It's a color system generator that creates accessible, perceptually uniform color palettes using the OKLCH space. It takes one seed (primary) color, generates relative key colors from multiple color harmony schemes (analogous, complementary, etc) that are then used to create 26-step color ramps each. Shades from the ramps are then used to generate semantic color roles, or can be used for creating custom palettes.
All colors are gamut-mapped to the sRGB gamut with chroma reduction, essentially preserving lightness and hue values while finding the maximum in-gamut chroma for each step.
There are obvious similarities to Material Design Themes, mostly because I'm visually pretty comfortable with it. Plus, I started this project back when some of the colors generated by Material could be a little dull and I wanted to learn/build something like this from the ground up.
There are a couple of improvements I would like to make to this in the near future. The first one is a dynamic chroma curve (the chroma falloffs for the ramps are on a bell curve). At the moment, the chroma curve peaks at L ~0.55 for all hue ranges, which works good enough but isn't ideal for a few reasons. The second one would be adding seed color extraction from images. And maybe a built-in contrast checker.
If you find the tool helpful and/or have any feedback or suggestions, let me know.
Discussion Activity
Light discussionFirst comment
2h
Peak period
1
Hour 2
Avg / period
1
Based on 1 loaded comments
Key moments
- 01Story posted
Nov 23, 2025 at 10:14 AM EST
16h ago
Step 01 - 02First comment
Nov 23, 2025 at 12:03 PM EST
2h after posting
Step 02 - 03Peak activity
1 comments in Hour 2
Hottest window of the conversation
Step 03 - 04Latest activity
Nov 23, 2025 at 12:03 PM EST
14h ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
I have a suggestion: consider exporting for shadcn as well.
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.