Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get colors with the same perceived brightness?

Is there a tool / program / color system that enables you to get colors of the same luminance (perceived brightness)?

Say I pick a color (determine RGB values) and the program gives me all the colors around the color wheel with the same luminance but different hues?

I haven't seen such tool yet, all I came across were three different algorithms for color luminance:

(0.2126*R) + (0.7152*G) + (0.0722*B)
(0.299*R + 0.587*G + 0.114*B)
sqrt( 0.241*R^2 + 0.691*G^2 + 0.068*B^2 )

Just to be clear, I'm talking about color luminance / perceived brightness or whatever you want to call it - the attribute that encounters that we perceive red hue brighter than blue for example. (So 255,0,0 has higher luminance value than 0,0,255.)

P.S.: Does anyone know which algorithm is used to determine color luminence on this website: http://www.workwithcolor.com/hsl-color-picker-01.htm It looks like they used none of the posted algorithms.

like image 230
user936774 Avatar asked Sep 09 '11 13:09

user936774


People also ask

What affects brightness of color?

The color or hue of light depends on its wavelength, the distance between the peaks of its waves. The brightness of light is related to intensity or the amount of light an object emits or reflects. Brightness depends on light wave amplitude, the height of light waves.

What colors look the same in grayscale?

Grayscale images are distinct from one-bit bi-tonal black-and-white images, which, in the context of computer imaging, are images with only two colors: black and white (also called bilevel or binary images). Grayscale images have many shades of gray in between.

How is saturation and brightness related to color?

Saturation is the intensity of a hue from gray tone (no saturation) to pure, vivid color (high saturation). Brightness is the relative lightness or darkness of a particular color, from black (no brightness) to white (full brightness). Brightness is also called Lightness in some contexts, in particular in SQL queries.


1 Answers

In the HSL color picker you linked to, it looks like they are using the 3rd Lightness equation given here, and then making it a percentage. So the equation is:

L = (100 * 0.5 * (max(r,g,b) + min(r,g,b))) / 255

Edit: Actually, I just realized that they have an L value and a Lum value shown on that color picker. The equation above applies to the L value, but I don't know how they are arriving at the Lum value. It doesn't seem to follow any of the standard equations.

like image 72
Jason B Avatar answered Nov 15 '22 12:11

Jason B