Quick Design Checkup: Color Contrast

by SBA · 21 comments

Most of us don't think much about our current blog design unless someone complains or we get tired of the theme. We go merrily along creating great content.

But not taking stock of existing design flaws is like skipping your annual doctor visit or car inspection – just waiting for something to go wrong. Blog readers and fans are a little like your Mom. They don't want to hurt your feelings by telling you your design needs retouching.

This post kicks off our Design Checkup Station. This and followup posts will put your blog through some tests and inspections to reveal "leaking visitors." If you participate, you'll be better equipped to plug those holes with minimal effort. Best of all, it's a free DIY (do it yourself) inspection.

The Design Checkup Process

wiki_tool_settingsLet's keep each post short by focusing on one design aspect. You'll do the initial assessment of where your blog stands on each checkup. Posts will list steps for fine-tuning and adjusting your results.

You leave a comment with your test results. I'll take a look at your website if you need advice on the next step. If you fix anything, tell us what you did and what worked best.

The Design Color Contrast Checkup

One of the most important elements of your blog is CONTENT. So make sure it's not only engaging but legible. Together your combination of text fonts, color and background play a critical role in readability. The wrong background colors and images can undermine your post.

"Two colors are considered to provide good color visibility if the brightness difference and the color difference between the two are greater than a set range." The range suggested by the World Wide Web Consortium (W3C) is >125 for  brightness and >500 for color difference.

Finding Your Blog's Color Codes

First you'll need the color codes for your background and foreground (font) colors. Don't look in the template. (You can breathe easy now.) The easier way is to use a color picker tool. I use Firefox's Colorzilla, which puts an eye-dropper tool in the browser to get a color reading from anywhere on your screen. Click the eye-dropper, then click on the background to see the color code. Do the same for the font color.

If you don't use Firefox, download a Windows utility that puts the picker in the system tray. This one is free: ColorMania.  Having a color picker will be useful, so take the time to get one!

Test Color Contrast

I used the Color Contrast Ratio Analyzer software. It has a simple box to accept your color codes. Then press the Calculate button and you get immediate pass/fail results. The question of proper contrast is easily settled.

You should run the test for your post content colors, sidebar and footer (if they are different). This is what I keyed for BloggingWithSuccess post text: #FFFFF (white background) and #444444 (dark gray font).

contrast-ratio Results showed:

"The contrast ratio is: 9.74:1"  and "Passed at Level AAA: The luminosity contrast ratio is very good for the chosen colours"

I looked at colors on two other sites:

site using yellow on green. (#386544 and #AAD637)

"The contrast ratio is: 3.98:1  and Passed at Level AA for large text only : (at least 18 point or 14 point bold)"

site using gray and red. (#780000 and #808080)

"The contrast ratio is: 2.96:1 and Fail: The luminosity contrast ratio is insufficient for the chosen colours"

Adjusting Color Contrast

Let's walk through a tool that can help you adjust or even drastically change the color contrast.

  1. Select either the background or the font color as the one you want to stick with. More than likely, the background fits your overall theme. If you want to "start over," use your color picker to get another background code. Use that value in the next step below. Let's assume you want the red background #78000, but need a better font color.
  2. Go to the RGB-Hex Code Converter, but page down and use the tool called "enter hex color code to get the inverse value."  Then press the "inverse color" button. Basically, this returns the exact opposite on the color wheel.  Two snippets magically appear, showing you how they match.
    colorcode-snippets
  3. Use the Color Contrast Analyzer again to verify the luminosity.

    "The contrast ratio is: 9.88:1; Passed at Level AAA: The luminosity contrast ratio is very good for the chosen colours (#780000 and #87ffff).

  4. If the color contrast fails or is only passable, then try the standard font colors of black (#000000) on light or white (#FFFFFF)  on dark backgrounds.

Change Background and Font Colors

This is the part you may dread if you need to adjust your colors to better complement the content.  Depending on your platform and comfort level, you can do one of the following:

A. Blogger: Use the feature called "Fonts and Colors"

The post on Mapping Blogger and Custom Template Colors tells you how to use the Fonts and Colors feature in Blogger. For purposes of this topic, concentrate on changing these variables only:  "page background color" and "text color." Just key in the color code number and watch the preview pane – a great way to see how the page looks before you save changes. Blogger does the rest and updates the html.blogger-layout-colors
(click for larger view.)More experienced bloggers can find and set the template variables ($bgcolor and $textcolor) directly, using Layout, Edit HTML tab.

B. WordPress.org: Modify your template style sheet

WP self-hosted users need to find and change the background and font variables in the template style sheet. Be sure to save the current code lines in a text pad file before you change anything. Go to Dashboard, Appearance, Editor to bring up your theme's style sheet (style.css). In my case, I would find and change the "color" code below the body styling:body {
color: #444. For our post background color of #FFFFFF, white, I would find and change "background:..." There will be many backgrounds, so find the one under post styling!.postcontent {
background: #FFF;

Finally, press "update file" to save the changes.

C. WordPress.com: Use Color Customizer

WP.com users can go to Dashboard, Appearance and select "Color Customizer." For my WP test blog these are colors I can change by keying in the color code:wp-color-customizerLike Blogger, you can preview before you make permanent changes. There is no way to change the background color.

Summary

The best time to check if your blog background and text colors work is before deciding on a theme. However, it is fairly easy to make adjustments later. This post gives you the tools to start that process. For more expert advice, you can turn to a friend who has confidence in changing templates. If necessary, you can also contact us for a quote on our consulting services.

The next step is yours; take the test and report your results in the comments. If you post the lowest fail results within the next week, you'll be our lucky 'winner' – complimentary help in making the proper adjustments. That's our way of saying thanks to our readers.

Any suggestions for the next topic are welcomed. As always, your feedback is appreciated.

This is a site that barely passed (#386544 and #AAD637)

Regular text sample of a site using yellow on green.

The contrast ratio is: 3.98:1  and Passed at Level AA for large text only : (at least 18 point or 14 point bold)

0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
4 Reasons For Subscribing
  • Get Full Posts Delivered Directly To Your Inbox.
  • Get Exclusive Freebies For Subscribers.
  • No "Buy This, Buy That" Mails!
  • 100% Privacy. Your EMail Address Will Never Be Shared With Any Third Party.
About Writer [Blogging With Success]About Author SBA is a web designer and co-founder of BloggingWithSuccess.net. She publishes BPWebNews a place for Blogspot tips and tricks. You can also find her on Twitter. Read SBA's other posts. She's also published a couple of guest posts.

Leave a Comment

CommentLuv Enabled

{ 21 comments… read them below or add one }

Ajith Edassery October 16, 2009 at 11:50 PM

Nice tips. I am in the process of finalizing a couple of niche blogs – These tips would certainly help me

Reply

SBA October 17, 2009 at 5:04 AM

Welcome! Be sure to come back and tell us how you used the tools… Your DollarShower blog is safe: black font on white background. Always smart. The sidebar category titles are a bit suspect but not too much text there.

Reply

David Shaw October 17, 2009 at 2:03 AM

Great advice!

Many people forget to keep improving their blogs!

Reply

SBA October 17, 2009 at 5:11 AM

Your contrast seems fine but i’d make the sidebar ‘about me’ more prominent (darker or bolder font)

Reply

Creative Junkie October 17, 2009 at 3:22 AM

How odd that you post this today, since I just launched my new blog design yesterday and have been inundated with comments about it, most of which state that they don’t like it. I was so surprised, because I loved it when I launched it but now, I’m second guessing myself and am contemplating deleting my pink borders and leaving them white.

I need to find a balance between what I like and what my readers like.

Reply

SBA October 17, 2009 at 5:24 AM

Hello ‘wife to Nate’, Well, you and I seem to be on the same wave length — not the first time you said “how odd posted today”. I also love purple (not really pink to me!).
“Purple is royalty. A mysterious color, purple is associated with both nobility and spirituality. The opposites of hot red and cool blue combine to create this intriguing color. “
So it may suit us (bold you and Leo me) but not be neutral enough for the ‘general public”. It’s great to have readers who feel they can tell you your blog looks fat… The reviews are mixed and some give great point about navigation (finding content they crave!).

Some thoughts: let it settle for awhile, then think about

1- reducing the amount of purple – leave the header, but make the sides black (white might break it up too much).

2 – use the multicolor image as a backgound instead of the purple?

3- thinner line of purple, increasing space for side bar and post column.

4- I love the boldness of the black sidebar for your blog. But you can try a matching palette. Use your color picker for the image photos colors (try different ones).

Reply

Creative Junkie October 18, 2009 at 9:07 AM

OK – I got rid of the pink/purple and went with white – it spoke to my clean and simple nature. Black just didn’t do it for me – made it look as if my entire content had this thick black border around it because of that black strip in my header.

It’s still the same color scheme but now it’s mostly white with black and purple accents, instead of purple with white and black accents.

I changed a whole mess of other things as well and hopefully, people won’t hate it as much. Honestly, I was really taken aback by how many people didn’t like it. I may have cried but if you tell anyone, I’ll deny it.

Reply

timethief October 18, 2009 at 9:32 AM

If I may I’d like to add something about accessibility that expands this post somewhat.

Aside from making your site accessible to visually challenged readers, including those who are colorblind, did you know that:

An accessible website is more likely to be ranked well with the search engines than an inaccessible website;
By designing a colorblind accessible website, you are also targeting PDAs, 3G phones, and similar technological devices that are used for web access.

How to Design Web Accessible Pages for the ColorBlind
Considering the Color Blind Design Evaluation Tool
3 WAYS to see what your colors look like to the color-blind

Reply

SBA October 19, 2009 at 10:09 PM

We appreciate your expansion! The point about targeting other technology is important. Thanks for the links.

Reply

Rahul October 18, 2009 at 1:21 PM

Colors can effect the overall performance on your blog.

Reply

SBA October 19, 2009 at 10:12 PM

“Colors can effect the overall performance on your blog.”
1. Can you elaborate on this aspect of your comment?

2. Did you test your contrast for the footer and sidebar titles?

Reply

Rahul October 20, 2009 at 8:38 AM

Yes, color can effect your overall earnings and performance. Their are two types of clickers.
first who clicks intentional ( who knows they are clicking ads) and
Second ( unintentional clickers ).

In one of my blog. I used two different colors for ads. some red color and one dull silver type. Red color got good response. That why, i like to highlight colors. bright colors for ads means they are priority no.1 and clicker will end up clicking.
even i feel, font size, heading color, overall back ground, top header logo color etc makes environment. also, matters in CTR of any advertising company.

If you have bad and dirty looking site. Then visitor will comes and will never come again. Because we not made our site user friendly.

Right now, i not tested. any thing in my theme. Need major modification. I will do it once again, when i will reach 500 unique per day.

Reply

SBA October 21, 2009 at 6:22 AM

Rahul,
Many thanks for sharing your experience with the ad colors and their effect on click traffic! Nice experiment. Good luck with your modifications, you seem to be on the right track.

Reply

ronelM October 18, 2009 at 6:02 PM

nice advice sir its very informative especially to those newbies!thanks

[Editor's note: SBA is a female spider.]

Reply

SBA October 19, 2009 at 10:20 PM

1. did you check your footer text? Also the date in the orange bubble is suspect.
2. the Century Gothic font is in the serif family which is not as easy to read as sans-serif.

Thanks for stopping by.

Reply

Matt - Zero 2 Hero October 19, 2009 at 7:39 AM

I like the contrast analyzer I’m going to use that in the future. Lately I’ve been toying around with lots of different color schemes and I didn’t have a way to get good feedback.

Reply

SBA October 19, 2009 at 10:22 PM

Hi Matt,
We’d like to hear what you ended up with and if you found any other tools that helped. If you use a webdeveloper tool you can change the css, take a snapshot and send them around to folks for input… just a thought.

Reply

Sharon Muza, New Moon Birth October 19, 2009 at 8:32 AM

TImely post, as I have been struggling with this lately! a few friends tell me black text is hard to read for them on my background, but I have not found an alternative that works with the them?

Maybe the color of the moon, but it also doesn’t look so good!

here is the result of the color analyzer as it stands now!
Results for Luminosity Contrast Ratio

The contrast ratio is: 3.35:1

Here are the results using the moon color

Results for Luminosity Contrast Ratio

The contrast ratio is: 5.03:1

Passed at Level AA for regular text, and pass at Level AAA for large text: If the text is large text (at least 18 point or 14 point bold), the luminosity contrast ratio is sufficient for the chosen colours at Level AAA; otherwise, Level AA (#58662B and #ecea9f).

Possibly better??? But not sure it works!

HELP!

Sharon

Passed at Level AA for large text only: If the text is large text (at least 18 point or 14 point bold), the luminosity contrast ratio is sufficient for the chosen colours (#58662B and #000000).

Reply

SBA October 22, 2009 at 8:13 PM

The 5.03 is passes for your size text, but you may want to do even better. What about a slightly lighter green background with a black font? e.g. you could increase:
The contrast ratio is: 10.01:1
Passed at Level AAA: The luminosity contrast ratio is very good for the chosen colours
(#a6bb7a and #000000).

Or try a weaker moon color like #336600.

You can use this tool at http://www.webmasterorbit.com/color-picker.html
Key in your dark green code, press enter and then slide up the color line until you see a brighter green that you like. Then use black font!

Let me know how it works out.

Reply

Anish K.S October 28, 2009 at 2:32 AM

Nice tips SBA, Bookmarked this blog, visit again.

Reply

SBA October 28, 2009 at 4:21 AM

Thanks for stopping by and do come back! I see your contrast is good, so no worries.

Reply

Previous post:

Next post: