logoalt Hacker News

account42today at 11:57 AM1 replyview on HN

It's pretty obvious that gp is asking for the brightest blue to be as bright as the brightest white but no brighter.

And no, #fff is not a "device color". The syntax originates from the web where sRGB is implied ever since we had displays brighter than that.


Replies

hackrmntoday at 4:32 PM

It wasn't obvious to me -- I misread "blue" as "white".

`#fff` is device color, it's short for `#ffffff` which is 24-bit RGB that predates sRGB, as does true color device support. I was sending 24-bit RGB to VESA-compliant graphics cards before sRGB became a thing. `#fff` was supported by Photoshop and Macromedia products as straightforward device colour format, before sRGB was adopted by at least the latter, mind you. The use by CSS is co-incidental, not where the format was introduced.