Home > Articles > Programming > User Interface (UI)

User Interface Design and the Importance of Color for .NET Database Systems

Colors are another form of data, and in light of the fact that the human eye can perceive more than ten million different colors, that's a potentially huge amount of data. Color theory helps you organize this data into manageable chunks. This chapter outlines color theory, both pigment-based theory and light-based theory.
This chapter is from the book

Since humanity began, we have been using the intrinsic colors of objects in the natural world. The artists of Altamira and Lascaux used ochres, colored earths, to draw their magnificent animals some 20,000 years ago. A now-extinct shellfish provided the dye used for the purple stripe on a Roman senator's toga. The blue robes of Sandro Botticelli's gentle Madonnas are tinted with ground lapis lazuli, a blue stone.

In this chapter, we move from typography to color theory—color's characteristics and interactions. Ultimately, of course, color is all about light, and the way our eyes react to it. The human eye can distinguish upwards of ten million distinct colors—a huge problem space that any systems analyst will tell you must be structured and organized.

This is what color theory does. However, traditional color theory is based on the mixture of pigments, while the display of color on a computer monitor is a mixture of light, which, as we'll see, is slightly different in its details.

The first two sections of this chapter deal with traditional, pigment-based color theory without translation. In designing color for your user interfaces, it's traditional theory that must guide you. The next section looks at the differences between color models, including the ARGB model used on computers, and finally, the last section looks at the .NET Framework objects used to manipulate color.

Come on, admit it, it's a lot more fun than memory allocation models (or at least no more tedious).

Understanding Color

Like the other graphic elements that we're examining in this first part of the book, there's a set of terms that folks in the field use to talk about color, and we'll examine them here.

The Dimensions of Color

Every color can be defined along three dimensions: hue, saturation, and value. Hue is what we normally think of as the color itself—red, yellow, or puce. Value is the relative lightness or darkness of a color—pink or magenta.

Saturation is measure of intensity, which is a function of purity of hue. If you mix equal amounts of the three primary colors, the result is gray. Imagine a gradient with a pure hue on one end and gray on the other—that's a measure of saturation.

The color wheel is a useful starting point for working with color. There are actually quite a few different configurations of color wheels, and we'll look at a couple others in this chapter, but the one shown in Figure 4-1 in the color insert, is the most common.

ARfig01.jpgFigure 4-1 Basic Color Wheel

The three colors that cannot be created by combining other colors— yellow, red, and blue—are the primary colors. Secondary colors, created by mixing two primaries, are placed between them on the wheel. For example, green is the mixture of blue and yellow.

As shown in Figure 4-2 in the color insert, the wheel can be further refined by including the tertiary colors such as red-orange or blue-green, which are mixtures of a primary and secondary color.

ARfig02.jpgFigure 4-2 Tertiary Color Wheel

You may be thinking that there are some colors missing from the color wheel—black, white, gray, and brown, often called the neutrals. In fact, black and white aren't technically colors. If you think of light, of course, black is its absence and white its presence.

You might expect that mixing the three primary colors would result in white. In reality, the result is gray. (You can also get gray by mixing black and white pigments, of course, because neither color, as a pigment, is a pure color.) Black and white are effectively primaries because they can't be mixed from other pigments.

They can, of course, be mixed with other pigments. When you mix a pigment with white, the result is a tint. When you mix a pigment with black, the result is a shade. If you add both black and white to a pigment, the result is a tone.

The other neutral is brown. Every time I've taught color mixing, somebody asks how you get brown. It is difficult to look at the color wheel and see how you could possibly arrive at such a distinctive color. So, here's the secret: Brown is a shade of orange, while beige is its tone.

Colors have one more characteristic that deserves mentioning: They are either warm or cold. The warm colors, as shown in Figure 4-3 in the color insert, are in the red-orange range, while cool colors are in the blue-green range.

ARfig03.jpgFigure 4-3 Warm and Cold Colors

Conventional wisdom has it that warm colors advance while cool colors recede, and while there's truth to that, it tends to be more important when you're painting walls than designing user interfaces. There's a big difference between the effect of an 8-foot wall and an 8-inch screen.

Color Harmonies

There is, of course, no limit to the number of effective color combinations, but that knowledge isn't much help when you're faced with designing a color scheme. Not to fear; there are traditional systems to help you organize your work.

The physical relationship between colors on the color wheel is the basis of traditional color systems, called color harmonies. Color harmonies are often referred to as color schemes, but that's not correct. A color scheme is simply the colors used in a project. A color harmony complies with one of the relationships described here.

A monochromatic color harmony uses a single color, perhaps with the addition of black and white. Monochromatic harmonies are obviously the simplest to implement. Pick a color you like, use its tints, shades, and tones, and away you go.

Like a document that uses a single typeface, monochromatic schemes are generally safe, slightly formal, and can be invisible. Sounds boring, but if you're building a data entry system, invisible is a good thing.

Invisible color schemes can be a good thing.

Analogous color harmonies are also fairly easy to use, but a bit more vibrant. As shown in Figure 4-4 in the color insert, an analogous harmony uses a primary hue along with one of its secondaries—blue and green in the example shown. Analogous harmonies may also include the intermediate colors—blue-green in the example.

ARfig04.jpgFigure 4-4 An Analogous Color Harmony

Analogous color schemes can be beautiful, but you must be careful to maintain enough contrast. Green text on a blue background is going to be pretty close to unreadable. But, dark green text on a pale blue background can be quite pleasant.

Make sure you have enough contrast when choosing an analogous color scheme.

A triadic color harmony, shown in Figure 4-5 in the color insert, combines three equidistant colors, either the three primaries, the three secondaries, or three tertiaries.

ARfig05.jpgFigure 4-5 A Triadic Color Harmony

Triadic color harmonies tend to be quite vibrant, even if you use pale or unsaturated versions of your hues. To use a triadic harmony successfully, you need to balance the three colors very carefully, using only small amounts of two of the colors, for example.

Complementary colors are directly opposite each other on the color wheel, as shown in Figure 4-6 in the color insert. Complementary colors have a special relationship. You've probably done the exercise—stare at a square of green for a few seconds and then look at a white wall. You'll see an after-image of red. Red and green are, of course, complementary colors.

ARfig06.jpgFigure 4-6 Complementary Colors

Balance triadic harmonies carefully.

If you put two complementary colors side by side, the edges tend to vibrate. So, for example, if you choose a text color that's the complementary of the window background, the text will start to move around on the screen. (Try it. It'll make you homesick for the sixties.)

Use your main color's complement as an attention-getter.

Complementary colors are tricky to use in large doses, but using a color's complement is an excellent technique for drawing attention to an area of the screen.

Complementary color harmonies can also work if you contrast the value and intensity of the two colors. Maroon and pale green, for example, are a classic Art Deco combination, and can work even for text and background, at least in relatively small doses.

The final classic color harmony is the split complementary, which combines one color with the two colors on either side of its complementary, as shown in Figure 4-7 in the color insert.

ARfig07.jpgFigure 4-7 Split Complementary Color Harmony

The split complementary harmony is a good choice for polychrome schemes because it's so hard to mess up.

The split complementary harmony sounds tricky, but is actually difficult to mess up, which makes it a good, safe choice for polychrome color schemes.

The split complementary is one of my favorite harmonies. A color scheme based on the split complementary is colorful, but hardly ever loud. It might not be the best choice for straight data entry applications, where efficiency is more important than appearance, but remember that any color harmony can combine black and white for its text display.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020