Windows – How to Enter Hex Colour Values in Excel

colorshexadecimalmicrosoft-excel-2013windows

I've googled the topic and searched on Super User for a preëxistent answer, and yet I cannot for the life of me figure this out.

What I want to do is simple: just assign a particular colour in the colour palette for cell fill. But I want to do so by using the Hex value of said colour, and it's only giving me the option to enter the RGB or HSL value.

However, this is such a basic option when it comes to colour input modes when it comes to software, I just find it ridiculously hard to believe that no option even exists.

Is this possible—at all possible—in Excel 2013?


Not sure if they're needed, but just in case, here's my comp's specs:

  • Make & Model: HP Compaq dc5700 SFF Base
  • Operating System: Windows 7 Professional SP1 x64

Best Answer

How can I enter Hex colour values in Excel?

This is not possible. Excel uses a version of the Color Dialog Box that only allows generation of custom colours using RGS or HLS.

However you can use an online color converter, such as Colorizer to convert from Hex values to RGB and HSL and then use the results in Excel.

enter image description here


What is Colorizer?

Color picker, calculator and generator with high precision and contrast test. Converts also RGB, HEX, HSL, HSV/HSB, CMYK and CIE-LAB colors and lots of other formats. In the Hex-field, you can write a known color name, too.


The Color Dialog Box

The Windows SDK provides a "standard" Color Dialog Box to choose colours. Many programs are built to use this.

enter image description here

Displays a modal dialog box that allows the user to choose a specific color value. The user can choose a color from either a set of basic or custom color palettes. Alternatively, the user can generate a color value by modifying the RGB or hue, saturation, luminosity (HSL) color values of the dialog box user interface. The Color dialog box returns the RGB value of the color selected by the user.

Some graphics programs (GIMP for example) that need a more sophisticated colour choosing mechanism provide their own custom dialog.


Further reading