Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Color White

Status
Not open for further replies.

Imaginecorp

IS-IT--Management
Jan 7, 2007
635
US
Trying to get a bright white color as Back Color for the screen.

In HTML (bgcolor="#F8F8FF”), gives me an extremely bright white; How do I do this in VFP9, RGB(255,255,255) just does not do it. I have incorporated it in the report previews (as HTML) but would like to use this as the _Screen Color.

Appreciate any help and all ideas…

Thanks
 
Imaginecorp,

I don't understand how #F8F8FF can be brighter than #FFFFFF, which is the same as RGB(255,255,255).

Surely, if some of the bits are un-set, the result must be dimmer than if all of them are set -- unless I'm missing something obvious.

Then again, detergents can be whiter than white, and politicians aspire to be ... so why not?

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike Yearwood: YOU DA MAN...That’s exactly what I wanted. Running against a major deadline here and did not have the time to play around with the color picker, though I would never have figured it out...Thanks. Is there a way to convert HTML colors to RGB?

Mike Lewis; rgb(248, 248, 255) is a few shades brighter than regular white. Try it, you will like it better than rgb(255,255,255) for your applications

 
rgb(248, 248, 255) is a few shades brighter than regular white.

To my old eyes, it really doesn't look brighter -- just the opposite. But if you're happy with it, that's fine.

I'll keep this in mind in case it ever comes up in my own apps.

Mike




__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
I just made a form with a button that turns the backcolor to rgb(248,255,255) and it looks (just fractionally) DARKER to me!

Old eyes I guess

Regards

Griff
Keep [Smile]ing
 
Although #FFFFFF (255,255,255) is the brightest white that can be chosen, there are other factors that can change how the colours are perceived.

Off the top of my head:

The 'colour temperature' of the display device.

The ambient lighting conditions when displaying the app.

The contrasting colours close to the area being viewed (Ever noticed that yellow seems brighter than white when they are next to black?)

...and finally the eyes of the person viewing the content.

#F8F8FF appearing brighter than #FFFFFF suggests that blue is being subdued a little, and needs relative boosting by dropping the red & green components. Reasons for this could be a high colour temperature on the display device and close proximity to dark blue/black elements on the screen.

In short: #FFFFFF is objectively brighter, but colour is subjective (as has been shown by the responses here).
 
All relevant points:

A simple test would be in HTML.

2 pages one with bgcolor="#F8F8FF” the other with bgcolor="#FFFFFF”. Unless I am mistaken (Old age catching up) the F8F8FF seems "whiter"
 
The problem with HTML colors is color management of browsers. Perhaps make a screenshot of the two html pages with bgcolor #ffffff and #f8f8ff, then use a color pipette or zoom of some image processing software and see what color the browser really uses. The colors might turn out as some other color. browsers try to make pages look equal on different computers and monitors, so things like gamma correction (especially different on macs and windows machines) may convert the color you pass to something totally different.

The next thing is monitors themselves, which might make some color "corrections".

With VFP, setting bgcolor to the values you enter, you get the color you say you want.

Also see here: especially see, that ffffff is among the list of Web Safe Colors, while f8f8ff is not.

Bye, Olaf.
 
@Imaginecorp:

Another guess why F8F8FF seems brighter to you is not old eyes, but an old monitor or cable, displaying the blue channel a little less bright. Might be some dirty pin of the blue signal.

This way FFFFFF would look a bit yellowish, while F8F8FF would look brighter, because it looks colorless/very light grey which would subjectively be brighter than a light yellow tone.

Perhaps make some color calibration of your monitor to get it straight, such that ffffff looks correct again.

Bye, Olaf.
 
As Mike Yearwood mentioned, colors are represented in hexadecimal, decimal or octal notations. Each two nibbles represent a byte, there by F8, F8, FF. These three bytes represent the intesity of the color(each pixel) starting from 0 to 255 and the name 24-bit color.

Assuming two windows are displayed on diifferent locations on the screen: Another reason why it does not look bright(er) could be your monitor. Most of the time the color in the middle of the monitor is much sharper than around the corners/sides and is more true for lcd types. You can try to divide the screen in two parts first horizontally and display your results. Then vertically and then dispaly the result. Also you can do Shift PrintScreen, to copy and then paste in the word documnt and compare the results. Check the windows size for both displays.
 
Olaf & Nasib; Thanks...

Yes you are both correct about the monitors. Unfortunately our clients are "frugal". Most have old monitors and machines, the white displayed (255,255,255) is 'Yellowish" or dull thus the reason for (248,248,255)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top