Color Picker

Pick any color โ€” preview it live, copy the code, explore shades and harmonies.
#3B82F6
Tap to open picker
HEX
RGB
HSL
Color harmonies
Shades & tints
Recent colors
No colors yet โ€” pick one above.
Quick presets

How color representation works

A single color can be described in several different ways. HEX, RGB, and HSL are three of the most common, and each has its own strengths. The tool above shows all three formats for the same color, and lets you copy whichever one you need.

HEX โ€” the web standard

#RRGGBB (each pair is 00โ€“FF in hexadecimal)

HEX is a 6-character code that represents red, green, and blue components, each with two hexadecimal digits. The range is 00 (no color) to FF (maximum). #3B82F6 means red = 3B (59), green = 82 (130), blue = F6 (246). HEX is the standard for CSS, HTML, and almost every design tool.

RGB โ€” how screens actually work

rgb(R, G, B) where each value is 0โ€“255

RGB shows the same information as HEX, just in decimal instead of hexadecimal. Screens mix red, green, and blue light to create every other color. The same color above is rgb(59, 130, 246). RGB is useful when you need to adjust individual channels programmatically.

HSL โ€” how humans think about color

hsl(H, S%, L%) H = hue 0โ€“360ยฐ, S = saturation 0โ€“100%, L = lightness 0โ€“100%

HSL describes color the way people intuitively understand it. Hue is the color itself (0ยฐ is red, 120ยฐ is green, 240ยฐ is blue). Saturation is how vivid or muted it is. Lightness is how bright or dark. The same color above is hsl(217, 91%, 60%). HSL is the most useful format for generating variations โ€” to make a color lighter, you just increase lightness.

Color harmonies

Color theory defines several classic relationships between colors on the color wheel. These are used in design to create palettes that feel balanced:

The harmony grid shows the base color alongside its complementary, analogous (โˆ’30ยฐ and +30ยฐ), and triadic (+120ยฐ) variants. Click any one to switch to that color and see its harmonies.

Common questions

โ† Back to Your Online Helper
Copied!