Forum Moderators: open

Message Too Old, No Replies

Same color #, looks different

         

Acternaweb

6:35 pm on Jan 8, 2004 (gmt 0)

10+ Year Member



I am having a problem, I have a color background #ff0000 that is a "burgandy" color. However, sometimes it comes out in a bright red and some times it is the burgandy. Is there something I can do to make it consistant?

balinor

6:40 pm on Jan 8, 2004 (gmt 0)

10+ Year Member



Can you narrow down when it behaves differently (ie different browsers, different computers, etc)?

choster

6:40 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



#ff0000 is bright red-- FF is the maximum value for any color, and you've specified maximum red and zero green or blue. It should never appear as burgundy, which is more like #990033.

- check to make sure you don't have any extra or missing characters (e.g. ff0000 or #ff00000)
- check to make sure, if it is a quoted value, that you have a closing quote (e.g. <table bgcolor="#ff0000"> not <table bgcolor="#ff0000>)
- check to make sure that your display is rendering other reds correctly.

What does the page look like if you change #ff0000 to "red"?

tedster

7:09 pm on Jan 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also, depending on several variables, including browser version and the user's color depth setting, background hex colors can vary quite a bit from one system to another and often depart from what you see in a foreground color. BG hex colors are not rendered the same way as foreground colors in many situations, although in the last few browser versions they come close.

I often have run into trouble, particularly between 16 bit color settings and 24 bit.

The fix I use when an exact match is required is this - tile a one color gif for background, rather than just depending on the hex colors. Then if there is a color shift because of low color depth setting, the same shift gets applied to background and foreground color and the end result is a visible match, even if the color's not exactly what I hoped for.