# [Semi-OT] Possible RGB Hex Triplet anomaly?

#### Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

•  Subject
• Author
• Posted on

http://www.sugapablo.net/temp/colortest.html

Does it look right to you? Should #0000ff and #000fff be the same shade
of blue? Especially since #ff0000 is red and #fff000 is drastically
different as yellow.

Maybe my monitor is busted or something?

Does anyone else find this strange?  That the RGB levels would be
asymmetrical like that?

--
[=============================================================================]
Sugapablo -> http://www.sugapablo.net
[=============================================================================]

## Re: [Semi-OT] Possible RGB Hex Triplet anomaly?

If you break the rrggbb color codes apart into rr, gg, and bb values, you
get:

0000ff    00    00    ff
000fff    00    0f    ff

ff0000    ff    00    00
fff000    ff    f0    00

The difference between the green value of the first two is 0f, which is
less than 10.

The difference between the green value of the second two is f0, which is 15
times 10.

Given that the second change in the green value is more than 15 times the
first change in the green value, it makes sense that it would be much more
obvious to the human eye.
--
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew /
Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com /

"Experience is what allows you to recognize a mistake when you make it again."

## Re: [Semi-OT] Possible RGB Hex Triplet anomaly?

On Mon, 21 Nov 2005 21:01:20 +0000, Darin McGrew wrote:

Ah!  Ok, that makes me feel better.  That was drivin' me nuts!  Thanks.  :)

--
[=============================================================================]
Sugapablo -> http://www.sugapablo.net
[=============================================================================]

## Re: [Semi-OT] Possible RGB Hex Triplet anomaly?

I wrote:

Rereading what I wrote, it might have been more direct to point out that
the change of f0 is exactly 16 times the change of 0f.
--
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew /
Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com /

"Experience is what allows you to recognize a mistake when you make it again."