How to get html color code from an image using MS Paint

Step 1:

Open the image in ms paint.

 
 
Step 2:
Use color picker to select the color on image for which you want the html code for.
    (Circled in red)

 
Step 3:
 Now that I have selected blue color note that ‘Color 1’ changes to blue. You should make sure the color you have selected and that shown in ‘Color 1’ are same.

 
 
Step 4:
Now we are ready to get the RGB code of the selected color.
    Click on the ‘Edit Color’s button to get the color palette.
 
Step 5:
That’s it! Now we got the RGB values of the selected color.
   RGB(14,149,255) = the blue color we want.
 
Step 6 :
To get the html color code convert each value to its hexadecimal notation. For those lazy people like me there are a lot of RGB to HTML converters available. The first result I got from Google is http://easycalculation.com/rgb-coder.php
 
Step 7: 
Now for those who really want to convert RGB to html color code on their on, read the rest. Open Calculator. (Windows + R, calc)
 
Step 8 :
Press Alt+3 or select ‘Programmer’ mode.
 
Step 9: 
Now calculator must have expanded with some extra features. Radio button for ‘Dec’ is selected by default.
 
 
Step 10:
 Type in each of the RGB values and select Hex for converting to hexadecimal value.
 
  • 14 will be converted to E
  • 149 will be converted to 95
  • 255 will be converted to FF

So RGB(14,149,255) —> #0E95FF.
Note that html color code is either 6 digits or 3 digits. So if you get single digit hexadecimal just add a zero on left.

Advertisements

1 Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s