如何获得具有相同感知亮度的颜色?
是否有工具/程序/颜色系统可以让您获得相同亮度(感知亮度)的颜色?
假设我选择一种颜色(确定 RGB 值),程序会为我提供色轮周围具有相同亮度但不同色调的所有颜色?
我还没有见过这样的工具,我遇到的只是三种不同的颜色亮度算法:
(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 )
为了清楚起见,我说的是颜色亮度/感知亮度或任何你想称呼它的东西 - 我们遇到的属性例如,感觉红色比蓝色更亮。 (所以 255,0,0 的亮度值比 0,0,255 更高。)
PS:有谁知道这个网站上使用哪种算法来确定颜色亮度:http://www.workwithcolor.com/hsl-color-picker-01.htm 看起来他们没有使用任何发布的算法。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您链接到的 HSL 颜色选择器中,看起来他们正在使用此处给出的第三个亮度方程,然后将其设为百分比。所以等式是:
编辑:实际上,我刚刚意识到它们在颜色选择器上显示了
L
值和Lum
值。上面的等式适用于L
值,但我不知道它们是如何得出Lum
值的。它似乎不遵循任何标准方程。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:
Edit: Actually, I just realized that they have an
L
value and aLum
value shown on that color picker. The equation above applies to theL
value, but I don't know how they are arriving at theLum
value. It doesn't seem to follow any of the standard equations.