Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

Convert From RGB to Hex on a Macintosh Computer

By Jennifer Kyrnin, About.com

When using color on Web pages, you have to use hex codes, but most graphics programs describe colors as RGB. But it's simple to convert an RGB code into a hexadecimal triplet for your Web page.
Difficulty: Easy
Time Required: 5 minutes

Here's How:

  1. Choose an RGB color you would like to convert. For example, a golden yellow in RGB is (177,102,0).
  2. Open calculator II.
  3. Enter the first number in the RGB code into the calculator. In my example, that would be 177.
  4. Click on the HX button.
  5. Record the code that appears as your first two digits of your hex-triplet. In my example, that would be B1.
  6. Repeat with the two remaining RGB codes. For my example, I get 66 and 00. My resulting hexadecimal code is #B16600.

Tips:

  1. I strongly recommend you only use browser-safe colors. These are colors that display accurately on more browsers and platforms.

What You Need:

  • Macintosh Calculator

Explore Web Design / HTML

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. Web Design
  5. Principles of Web Design
  6. Color
  7. Color Converters
  8. Convert From RGB to Hex on a Macintosh Computer

©2009 About.com, a part of The New York Times Company.

All rights reserved.