Comment

Comment by Freak_NL

It looks neat, but I have a subtle suggestion; why not output CSS HSL colour codes instead of RGB? It's supported in all relevant browsers (IE9+).

HSL has the benefit of explicitly showing the colour's hue, saturation, and lightness — meaningful values compared with RGB's three colour channels, which is something you might want to stimulate with a tool like this.

With HSL a minor change in saturation or lightness can also be done directly from the CSS (or SASS) code by whoever is maintaining the stylesheet.

    # Green.
    hsl(130, 41%, 33%)
    rgb(50, 119, 62)

    # Slightly more vibrant green — note that only the saturation value changes.
    hsl(130, 53%, 33%)
    rgb(39, 130, 55)
parent Freak_NL 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton