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 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 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 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 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.
#RRGGBBAA. The last two digits
control opacity, from 00 (fully transparent) to FF (fully opaque).
The base color is unchanged; only transparency differs.