Live data from Hacker News

New alternatives to HSL and HSV that better match color perception

bottosson.github.io

1–10 of 80 posts

Re: New alternatives to HSL and HSV that better match color perception

#2
> The main drawback of using these models directly for color picking is that the sRGB gamut has a quite irregular shape in these color spaces. As a result, changing one parameter, such as hue, can easily create a color outside the target gamut, making them quite tedious to use.

Yes, and since we use color models in development primarily to model RGB light as displayed by machines, these are less than useful indeed.

For anyone looking for a neat color model that is novel and is a bit more intuitive (arguably), look up HCG.

Re: New alternatives to HSL and HSV that better match color perception

#3
I had a project where I had to convert absorption spectrum of a liquid sample into a colour. It was one of those "Just do this quick, it doesn't have to be perfect" type of things where I didn't get a chance to really understand it. I was baffled how many standards and technicalities there is behind a seemingly simple thing.

Re: New alternatives to HSL and HSV that better match color perception

#4
post #2

> The main drawback of using these models directly for color picking is that the sRGB gamut has a quite irregular shape in these color spaces. As a result, changing one parameter, such as hue, can easily create a color outside the target gamut, making them quite tedious to use. Yes, and since we use color models in development primarily to model RGB light as displayed by machines, these are less than useful indeed. F…

    HCG
https://github.com/helixd2s/hcv-color

HCG = Human Chorionic Gonadotropin, which will dominate your search results.

Re: New alternatives to HSL and HSV that better match color perception

#5
These days I would want a color picker that considers the lighting and surrounding colors.

I have an office which has huge windows facing (mostly) away from the sun so I have bright light from either clouds or blue sky. Reproductions of renaissance paintings and photographs on ‘bright white’ paper look great, but at home the color temps are in the high 2000s usually and I need coated papers for the images to be compelling.

So I am always thinking about what environment a print is in and would love to have more tools to tune up the appearance.

Re: New alternatives to HSL and HSV that better match color perception

#6
Looking at the author's explanation for HSV and HSL, it sounds like they are designed for hypothetical programmable wavelength lights and paints. Hue would be wavelength, Saturation is either output filter bandwidth or conversion element efficiency, Value/Lightness is either output current or amount of ink.

RGB is likewise for fixed wavelength three-color lights/filters, and CMYK is for prints. I think it's the same situation as units of measurements in aviation[1] being all over the places; the measurements are tied to specific devices, principles and usages of them.

1: Altitude in feet measured by pressure altimeters, distances measured in nautical miles defined as one minute of latitude, fuel in pounds and dimensions in inches, but never altitudes in miles or distances in feet, except for runway lengths which is always feet or meters.

Re: New alternatives to HSL and HSV that better match color perception

#8

These days I would want a color picker that considers the lighting and surrounding colors. I have an office which has huge windows facing (mostly) away from the sun so I have bright light from either clouds or blue sky. Reproductions of renaissance paintings and photographs on ‘bright white’ paper look great, but at home the color temps are in the high 2000s usually and I need coated papers for the images to be compe…

I think screen color space and print color space are just two entirely different considerations. They meet up in the middle somewhere, but you really can't look at both at the same time

Re: New alternatives to HSL and HSV that better match color perception

#9
post #2

> The main drawback of using these models directly for color picking is that the sRGB gamut has a quite irregular shape in these color spaces. As a result, changing one parameter, such as hue, can easily create a color outside the target gamut, making them quite tedious to use. Yes, and since we use color models in development primarily to model RGB light as displayed by machines, these are less than useful indeed. F…

HCG https://github.com/helixd2s/hcv-color HCG = Human Chorionic Gonadotropin, which will dominate your search results.

Thanks, seems they renamed it recently.

Re: New alternatives to HSL and HSV that better match color perception

#10
There’s some really cool features about lab-like color spaces. Particularly, the ability to quickly find, localize and transmit data (from with lower error rates):

https://austingwalters.com/chromatags/

In almost every computer vision class I took, switching to the LAB color space and rerunning algorithms also still always led to improvement.

The real trick in my mind is trying to do this via sensors and / or hardware.

Post reply on HN