Skip to content
ColorPicker Studio

HEX Color Picker

Choose a color visually or type a HEX code to preview it. Get the 6-digit HEX code — or 8-digit HEX with transparency — along with its RGB and HSL equivalents.

#2596BESteel Blue
Hue
196°
Saturation
81%
Brightness
75%
Opacity
100%

Color values

HEX
#2596BE
RGB
rgb(37, 150, 190)
RGBA
rgba(37, 150, 190, 1)
HSL
hsl(196, 67%, 45%)
HSV
hsv(196, 81%, 75%)
CMYK
cmyk(81%, 21%, 0%, 25%)
OKLCH
oklch(63.05% 0.1123 227.43)
CSS
color: #2596be;

How to get a HEX code

  1. 1Drag in the color square or type a HEX code such as #2596BE or 2596be in the HEX field.
  2. 2Adjust the opacity slider if you need transparency — the HEX value becomes 8 digits (#RRGGBBAA).
  3. 3Click the copy button next to HEX to copy the code.

How HEX color codes work

A HEX color code is an RGB color written in hexadecimal (base 16). #RRGGBB uses two digits each for red, green and blue, from 00 (none) to FF (full, 255). So #FF0000 is pure red, #FFFFFF white and #000000 black.

Short forms double each digit: #2BE equals #22BBEE. An optional fourth pair sets opacity: #2596BE80 is about 50% opaque. HEX codes are not case-sensitive.

HEXMeaning
#RGB3-digit short form (each digit doubled)
#RGBA4-digit short form with alpha
#RRGGBBStandard 6-digit code
#RRGGBBAA8-digit code with alpha (00 transparent – FF opaque)

Frequently asked questions

How many HEX colors are there?

16,777,216 — that's 256 values for each of red, green and blue (256³).

How do I convert a HEX code to RGB?

Each pair of digits is a number from 0 to 255 in base 16. Use the RGB values shown on this page, or the color converter for many colors at once.

What is the HEX code for transparent?

Any 8-digit HEX ending in 00 is fully transparent, for example #00000000.