Live data from Hacker News

Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

enes.in

11–20 of 167 posts

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#13

This is fun! The only "bug" I see, if at all, is that the hue value does not wrap around, i.e. the colors shown at 360 are not the same colors shown at 0.

Good point, thanks for pointing it out. I think I was trying to deal with it, but for some reason I just let it be this way. Also contributions are welcome! :)

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#15

It's neat! Slightly offtopic - I saw one of the colors named "peru", does the name has any connection with Peru the country?

Not sure about that one, but dodgerblue is named after the LA Dodgers, so seems possible :-) https://en.wikipedia.org/wiki/Dodger_blue

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#16

Some of these seem a little off, for example CADETBLUE and CYAN being next to each other. could just be my eyes or my monitor though

Note that their hue and lightness values are almost same. The only difference is saturation and that seems to be why they are on the same row, differentiated only by the saturation axis.

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#17
I had no idea there were this many named colors in CSS.

Turns out there are 16 HTML colors (upped to a whoppin' 17 colors in HTML4/CSS2.1) and around 124 named colors which originally came in due to X11. Since then, several colors have been added through various standards updates for a total of around 147 colors.

Re: Show HN: Sorted CSS Colors – Sort the named CSS colors in a nice way

#19

For speed's sake could a hover or tap bring out the hex code? I understand that was not the function of your site. It would be cool to just be able to quickly see/use the hex if one is searching for color combos.

You may be familiar with this type of request: file it under "SCOPE CREEP"
Post reply on HN