Hacker News new | ask | show | jobs
by lucideer 2086 days ago
> "lightsalmon" is more descriptive to me than "#FFA07A" or "rgb(255, 160, 122)"

While I agree, I feel that learning to look at "#FFA07A" and immediately grok "pink" has been of general benefit to me as a frontend dev.

> or "hsl(17, 100%, 73.9%)" at a glance

I must admit though that I haven't mastered identifying hue by number just yet (though if I do, it will be even better as Saturation and Lightness/Luminosity are much easier to reason about).

1 comments

I always found hex codes non-intuitive, but the hue values are easy once you just remember:

0 = red

120 = green

240 = blue

Then you just interpolate as desired, so yellow is 60, orange is 30, red-orange is 15.

And really all you need to remember is red = 0 (lowest energy wavelength) and the three RGB primaries are spread evenly around the 360° color wheel, therefore 0, 120, 240.

If you're good at knowing how colors mix, RGB values are also very intuitive, since they're literally in RGB order and the the closer to FF it is, the more of that color is in it.

But I hadn't spent the time to look at hue values, so your chart helped me get better at them.