curlytab

curlytab / Color Picker / HEX to RGB

Every shade, in every format.

HEX to RGB Converter

Type or paste a HEX color code like #3A7BD5 to get its RGB values straight away, along with HSL, HSV and CMYK. The swatch shows the color, and you can copy any format with one click.

Type any value, including names like tomato, and the rest update.

Contrast with text

Tints and shades

Color harmonies

Click any swatch to select it and copy its HEX code.

Pick a color from an image

Drop an image here

or , or paste with Ctrl+V. Nothing is uploaded.

How to use the HEX to RGB Converter

  1. Type or paste the HEX code into the HEX box. The # is optional, and 3-digit codes like #F80 work too.
  2. Read the RGB value in the box below, and click Copy.
  3. Use the other boxes for HSL, HSV or CMYK, or pick a different color above.

How HEX to RGB works

A HEX color is three pairs of hexadecimal digits: red, green and blue. Each pair is a number from 00 to FF, which is 0 to 255 in decimal. Split the code into pairs and convert each one:

#3A7BD5 → 3A = 3 × 16 + 10 = 58, 7B = 7 × 16 + 11 = 123, D5 = 13 × 16 + 5 = 213 → rgb(58, 123, 213).

Short codes double each digit: #F80 is #FF8800, or rgb(255, 136, 0). An 8-digit code like #3A7BD580 adds an alpha (opacity) pair at the end.

Common colors

ColorHEXRGB
Black#000000rgb(0, 0, 0)
White#FFFFFFrgb(255, 255, 255)
Red#FF0000rgb(255, 0, 0)
Lime#00FF00rgb(0, 255, 0)
Blue#0000FFrgb(0, 0, 255)
Yellow#FFFF00rgb(255, 255, 0)
Cyan#00FFFFrgb(0, 255, 255)
Magenta#FF00FFrgb(255, 0, 255)
Gray#808080rgb(128, 128, 128)
Orange#FFA500rgb(255, 165, 0)
Purple#800080rgb(128, 0, 128)
Navy#000080rgb(0, 0, 128)
Teal#008080rgb(0, 128, 128)
Tomato#FF6347rgb(255, 99, 71)
Gold#FFD700rgb(255, 215, 0)
Hot pink#FF69B4rgb(255, 105, 180)

Frequently asked questions

What is #FFFFFF in RGB?

rgb(255, 255, 255): white. #000000 is rgb(0, 0, 0), black.

Are HEX codes case-sensitive?

No. #3a7bd5 and #3A7BD5 are the same color.

How do I convert hex digits to numbers?

A to F stand for 10 to 15. Each pair is first digit × 16 + second digit. For any number, try the hex to decimal converter.