Hacker News new | past | comments | ask | show | jobs | submit login

I'm not sure HSL would be better in that case. For unsaturated colors (black to grey to white) HSL has many points that have perceptually the same color but different HSL values. If S is zero, then you have the same color for any value of H so you might get a large distance for two points that are actually white for example. At least when using Cartesian coordinates like he is here.



Yes, as I noted:

> Just need to make sure that white and black aren't matched to random hue values.

Colors with too small saturation can just be excluded from the search, since gray/white/black go with anything.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: