News for hackers. Stuff that matters.
Re:What are OKLCH colors? by omnicognate on Monday August 25, 2025 @05:54PM (#45019530)
Edit: The article was updated. Ignore me.

> you should probably default to interpolating in Oklab instead

The article says as much. Quoting:

> This can be a double edged sword. While some gradients might look smoother, you might also see colors that you've never defined. This is because hue in OKLCH is circular and gradients can take unexpected detours.

> To avoid this, many tools use OKLAB for gradients, which interpolates in a straight line and gives more consistent results.

Re:What are OKLCH colors? by jayrhynas on Monday August 25, 2025 @06:13PM (#45019748)
I was going to point that out too until I realized that the author updated the article based on the parent comment!

https://news.ycombinator.com/item?id=45013291

Re:What are OKLCH colors? by omnicognate on Monday August 25, 2025 @06:14PM (#45019759)
Ha! Well spotted.