hue what!

Colour Brightness Experiment
Set the base colour with the leftmost red, green and blue sliders below, this changes both panels, then use the ↑↓ slider to change brightness in the right panel. The sliders on the right show the adjusted RGB values. Do not move these, they are for information only.
↑↓ 255 255 255   Base Colour Adjusted   255 255 255
   
Base:    Adjusted:
Colour Brightness Values
Steps type †: STW* exponent  fractions  redistribute excess 
  +1  clamp 
Colour Brightness Levels : Greyscale
STW*
Base:
0
Adj:
0
 
gXYZ
Base:
0
Adj:
0
 
sXYZ
Base:
0
Adj:
0
 
XYZ
Base:
0
Adj:
0
 
gYIQ
Base:
0
Adj:
0
 
sYIQ
Base:
0
Adj:
0
 
YIQ
Base:
0
Adj:
0
 
Lightness
Base:
0
Adj:
0
 
Average
Base:
0
Adj:
0
 
255
200
100
Page uses cookies to remember settings from one session to the next unless disallowed. Allow cookies?
There are two colour panels, one left, one right, titled Base Colour and Adjusted.
To the left of the colour panels there are four sliders.
The leftmost slider adjusts the BRIGHTNESS of the base colour that is in the left panel and shows the result in the right panel.
The three RGB sliders that are to the left of the colour panels adjust the colour (hue) in the leftmost panel, when you move them they simultaneously set the rightmost colour panel to match the leftmost, which they have to do, if you think about it.
The three sliders to the right of the colour panels are not for sliding by hand, they show the brightness RGB values of the rightmost colour panel. They are there as sliders solely to show the RGB values in a graphic format that is relative to the sliders on the left.
to the right of the colour panels, where it says ‘Colour Brightness Value’ there are nine options, each one showing the brightness value of both the base colour (the leftmost colour panel) and the adjusted colour (the rightmost colour panel).
Each of the Colour Brightness Values is expressed according to a different formula.
There are different ways to calculate greyscale from a colour. They all work well for different jobs.
Key:
STW*The SEEMS TO WORK formula devised by me and described on Readable Text in Colour – STW*.
gXYZInverse gamma using the XYZ coefficients of R: 0.212655, G: 0.715158 and B: 0.072187, inverse gamma as described on StackOverflow.
sYIQInverse gamma using the YIQ coefficients of R: 0.299, G: 0.587, B: 0.114, YIQ coefficients also known as Digital CCIR601.
sXYZSquare root using the XYZ coefficients: sqrt((0.212655*(R^2)) + (0.715158*(G^2)) + 0.072187*(B^2)).
sYIQSquare root using the YIQ coefficients: sqrt((0.299*(R^2)) + (0.587*(G^2)) + (0.114*(B^2)).
XYX0.212655*R + 0.715158*G + 0.072187*B, also known as the Luminosity formula, see Puzzling Greys.
YIQ0.299*R + 0.587*G + 0.114*B, as in the Web Accessibility Guidelines from the W3C, see Holes in the W3C Colour Readability Guidelines.
LgtLightness: ½ × (max(R,G,B) + min(R,G,B)), see Puzzling Greys.
AvgAverage:(R + G + B) ÷ 3, see Puzzling Greys.
† The Steps Type boxes and buttons specify different ways to calculate brightness levels, as follows. Note that some of these difference are marginal with some colour triads, it varies.
† Steps Type Key:
STW* ExponentThe exponent for the SEEMS TO WORK formula devised by me and described on Readable Text in Colour – STW*. This field enables the exponent for the formula to be varied.
FractionsTo calculate the next brightness level the code goes up in one hundreds of a brightness level for each of the red, green and blue elements. This therefore gives an accurate value for each of the 255 levels.
+1To calculate the next brightness level the code goes up by 1 for each brightness level for each of the red, green and blue elements. Sometimes it might need to increment by two. This therefore gives a rough value for each of the 255 levels, most of the time it should be right, but not guaranteed.
Redistribute ExcessWhen, in calculating the next brightness level by adding to the previous brightness level, one of the triad is greater than 255, its excess over 255 is redistributed to the other two elements of the triad, see StackOverflow for the formula for how to do this.
ClampWhen, in calculating the next brightness level by adding to the previous brightness level, one of the triad is greater than 255, it is clamped at 255 see StackOverflow for the formula for how to do this. For certain hues this changes the hue slightly in the upper brightness ranges.

This page is now to be found at landofinterruptions.co.uk/colourbrightness

 
powered by 66sys