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

How To Convert From RGB to Hex on a Macintosh Computer

By , About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  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.