Introduction

In this Exploration, you will learn about color value options and choose a color scheme from a photo.

Color Modes

Text and background colors for a website/app are typically determined by a marketing department's brand requirements and guidelines. Their rules help frontend developers incorporate a color palette/scheme that have been tested and approved, to avoid amateurish-looking design. View OSU's Brand Visual Identity Guidelines, for color. Notice that various color modes are provided for each color to ensure that designing for print and online materials are consistent. Besides the print color modes of Pantone (spot color printing) and CMYK (4-color printing), online color values can be included in the Guidelines.

The color modes typically used by frontend developers include the following:

When a brand does not specify a color mode that you prefer to use, a conversion tool will provide the value. Ask Google to convert orange into Hex, RGB, or HSL to see how easy it is!

Exercise: Picking a color scheme

If you are developing a project for a client or for yourself, and there is no color palette/scheme chosen yet, then it is a good idea to choose a set of colors based on the site's background photo/art. This will ensure that the set of colors (the scheme) will match.

  1. Start by making a Text File VS Code. You'll be pasting color values there.
  2. Locate a multicolored photo in .JPG format to experiment with. Consider picking one you took yourself, so you can use it for the website Assignments.
  3. Navigate to Adobe's free Color application. 
    1. Click the Extract Theme tab.
      1. Drag and drop or select the JPG file from your hard drive.
      2. Notice the colors picked by the tool.
      3. Adjust the lightest color so it is nearly white, but so you can still perceive some color.
      4. Adjust the darkest color so it is nearly black, but so you can still perceive some color.
      5. The remaining colors can be adjusted if they are too close in value (lightness/darkness) or hue (color).
    2. Click the Color Wheel tab.
      1. Notice the Hexadecimal colors under the color palette. They begin with a hashtag, such as #82B8D9.
        1. Copy/paste those colors to the text file.
      2. Click the Color Mode dropdown at the bottom left of the screen. Your choices are RGB and HSB (which is similar to HSL).
        1. Copy/paste either the RGB or HSB values to the text file.
      3. Unfortunately, unless you own an Adobe account, the Save feature doesn't work. :-( Consider taking a screenshot of the final color palette, so you can see them all together.
    3. Pick a memorable name for each of the colors you pasted into the text file. For example: skyBlue, forestGreen, moss, pumpkin, and gold.

You'll be incorporating this new color palette/scheme into the next Module's assignment. 

Summary

In this Exploration, you learned the various color modes available for the web, as well as how to extract a color scheme from a photo for use in the next Module.

Additional Resources

The following resources can help improve your understanding of color for the web.