How to Convert Paint Colors to HEX Color Code

Written by gareth downes-powell
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Convert Paint Colors to HEX Color Code
256 x 256 x 256 = 16,777,216 different colour combinations are available using the RGB model. (Jupiterimages/ Images)

Microsoft Paint uses the RGB colour model, which represents values for the red, green and blue components of a colour as a decimal number between zero and 255, allowing 16.7 million different colour combinations. The HTML standard also uses the RGB colour model, but represents each component value using hex instead of decimal. This allows a range of values from zero to FF for each component, where hex FF equals decimal 255. Convert the decimal colour values from Paint into their equivalent hex values using the Windows Calculator to use a colour in an HTML page.

Skill level:

Other People Are Reading


  1. 1

    Click on the Windows "Start" button, and then "All Programs." Click on the "Accessories" folder to open, and then click on "Paint" to launch Microsoft Paint.

  2. 2

    Click on the "Edit Colors" button on the main tool bar to open the colour picker dialogue box.

  3. 3

    Click on the colour you want to convert to hex format, and note the red, green and blue values in the boxes in the bottom-right of the dialogue box.

  4. 4

    Click on "Calculator" from the "Accessories" group in the Windows "Start" menu to open the Windows Calculator. Click on the "View" menu, and select "Programmer" if you are using the Windows 7 calculator, or "Scientific" for other versions of Windows. The interface will change, and you will see buttons for the various number bases, "Dec", "Hex", "Oct" and "Bin." Click on "Dec" for decimal mode if not already selected.

  5. 5

    Type in the red component value from the Paint colour picker, then click on the "Hex" button to select. The hex equivalent of the number is shown. For example, decimal 200 converted to hex is displayed as C8.

  6. 6

    Click on the "Dec" button to switch to decimal mode, and then enter the green component value. Click the "Hex" button to convert to the hex equivalent. Repeat to display the hex equivalent for the blue component value.

  7. 7

    Put the three hex codes for the red, green and blue values together to create the HTML colour code. For example, red 54, green 193 and blue 201 would give an HTML colour code of "#36C1C9." Note that HTML hex colour codes always start with the "#" character. The colour code can then be used in an HTML page.

Tips and warnings

  • Online converters are available which make it easier to convert decimal RGB values to hex.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.