How to convert hex to RGB color

Color code converter. Color codes chart. Color conversions.

Color code converter

HEX value is 6 digits (rrggbb).

RGB values are in range of 0..255.

HSV values are in range of Hue:0..359°, Saturation:0..100%, Value:0..100%.

HSL values are in range of Hue:0..359°, Saturation:0..100%, Lightness:0..100%.

Enter one color code and press the Convert button:

, ,   
°, %, %
°, %, %

Color codes chart

Hex / RGB / HSV / HSL:

Color Color
name
Hex (R,G,B) (H,S,V) (H,S,L)
  Black #000000 (0,0,0) (0°,0%,0%) (0°,0%,0%)
  White #FFFFFF (255,255,255) (0°,0%,100%) (0°,0%,100%)
  Red #FF0000 (255,0,0) (0°,100%,100%) (0°,100%,50%)
  Lime #00FF00 (0,255,0) (120°,100%,100%) (120°,100%,50%)
  Blue #0000FF (0,0,255) (240°,100%,100%) (240°,100%,50%)
  Yellow #FFFF00 (255,255,0) (60°,100%,100%) (60°,100%,50%)
  Cyan #00FFFF (0,255,255) (180°,100%,100%) (180°,100%,50%)
  Magenta #FF00FF (255,0,255) (300°,100%,100%) (300°,100%,50%)
  Silver #C0C0C0 (192,192,192) (0°,0%,75%) (0°,0%,75%)
  Gray #808080 (128,128,128) (0°,0%,50%) (0°,0%,50%)
  Maroon #800000 (128,0,0) (0°,100%,50%) (0°,100%,25%)
  Olive #808000 (128,128,0) (60°,100%,50%) (60°,100%,25%)
  Green #008000 (0,128,0) (120°,100%,50%) (120°,100%,25%)
  Purple #800080 (128,0,128) (300°,100%,50%) (300°,100%,25%)
  Teal #008080 (0,128,128) (180°,100%,50%) (180°,100%,25%)
  Navy #000080 (0,0,128) (240°,100%,50%) (240°,100%,25%)

How to convert from hexadecimal color code to RGB color.

Hex color code

Hex color code is a 6 digits hexadecimal (base 16) number:

RRGGBB16

The 2 left digits represent the red color.

The 2 middle digits represent the green color.

The 2 right digits represent the blue color.

RGB color

The RGB color is a combination of Red, Green and Blue colors:

(RGB)

The red, green and blue use 8 bits each, which have integer values from 0 to 255.

So the number of colors that can be generated is:

256×256×256 = 16777216 = 100000016

Hex to RGB conversion

  1. Get the 2 left digits of the hex color code and convert to decimal value to get the red color level.
  2. Get the 2 middle digits of the hex color code and convert to decimal value to get the green color level.
  3. Get the 2 right digits of the hex color code and convert to decimal value to get the blue color level.

Example #1

Convert red hex color code FF0000 to RGB color:

Hex = FF0000

So the RGB colors are:

R = FF16 = 25510

G = 0016 = 010

B = 0016 = 010

Or

RGB = (255, 0, 0)

Example #2

Convert gold hex color code FFD700 to RGB color:

Hex = FFD700

So the RGB colors are:

R = FF16 = 25510

G = D716 = 21510

B = 0016 = 010

Or

RGB = (255, 215, 0)

How to convert RGB to hex »


Currently, we have around 1976 calculators, conversion tables and usefull online tools and software features for students, teaching and teachers, designers and simply for everyone.

You can find at this page financial calculators, mortgage calculators, calculators for loans, calculators for auto loan and lease calculators, interest calculators, payment calculators, retirement calculators, amortization calculators, investment calculators, inflation calculators, finance calculators, income tax calculators, compound interest calculators, salary calculator, interest rate calculator, sales tax calculator, fitness & health calculators, bmi calculator, calorie calculators, body fat calculator, bmr calculator, ideal weight calculator, pace calculator, pregnancy calculator, pregnancy conception calculator, due date calculator, math calculators, scientific calculator, fraction calculator, percentage calculators, random number generator, triangle calculator, standard deviation calculator, other calculators, age calculator, date calculator, time calculator, hours calculator, gpa calculator, grade calculator, concrete calculator, subnet calculator, password generator conversion calculator and many other tools and for text editing and formating, downloading videos from Facebok (we built one of the most famous Facebook video downloader online tools). We also provide you online downloanders for YouTube, Linkedin, Instagram, Twitter, Snapchat, TikTok and other social media sites (please note we does not host any videos on its servers. All videos that you download are downloaded from Facebook's, YouTube's, Linkedin's, Instagram's, Twitter's, Snapchat's, TikTok's CDNs. We also specialise on keyboard shortcuts, ALT codes for Mac, Windows and Linux and other usefull hints and tools (how to write emoji online etc.)

There are many very usefull online free tools and we would be happy if you share our page to others or send us any suggestions for other tools which will come on your mind. Also in case you find any of our tools that it does not work properly or need a better translation - please let us know. Our tools will make your life easier or simply help you to do your work or duties faster and in more effective way.

These below are the most commonly used by many users all over the world.

And we are still developing more. Our goal is to become the one-stop, go-to site for people who need to make quick calculations or who need to find quick answer for basic conversions.

Additionally, we believe the internet should be a source of free information. Therefore, all of our tools and services are completely free, with no registration required. We coded and developed each calculator individually and put each one through strict, comprehensive testing. However, please inform us if you notice even the slightest error – your input is extremely valuable to us. While most calculators on Justfreetools.com are designed to be universally applicable for worldwide usage, some are for specific countries only.


Page Id: 1349

This website uses cookies to improve your experience, analyze traffic and display ads. Learn more