Color Picker
Pick any color and get its HEX, RGB, and HSL values with complementary and triadic color suggestions.
How to Use This Color Picker
Click the color picker to choose any color visually, or type a HEX value directly into the HEX input field. The tool instantly shows the equivalent RGB and HSL values, a large preview swatch, and computed complementary and triadic colors. Click any related color swatch to make it the active color. Use the Copy buttons to copy values to your clipboard.
Understanding Color Models
HEX (hexadecimal) is the most common color format in web development. It represents red, green, and blue channels as two-digit hexadecimal numbers, prefixed with #. For example, #FF0000 is pure red (FF=255 red, 00=0 green, 00=0 blue). HEX codes are case-insensitive and can be shortened to 3 digits when both digits in each pair are the same (#F00 = #FF0000).
RGB (Red, Green, Blue) specifies colors as three values from 0-255, one for each primary light color. When all three are 0, the result is black; when all are 255, the result is white. RGB is the native color model for screens and monitors, since they physically mix red, green, and blue light to produce colors.
HSL (Hue, Saturation, Lightness) is a more intuitive model for humans. Hue is the color angle on the color wheel (0-360°), saturation is the color intensity (0-100%), and lightness is how light or dark it is (0-100%). HSL makes it easy to create color variations — keep the hue and adjust saturation or lightness.
Color harmonies are combinations of colors derived from their positions on the color wheel. Complementary colors sit opposite each other (180° apart) and create high contrast. Triadic colors are equally spaced (120° apart) and provide vibrant, balanced combinations. These harmonies are foundational in graphic design, web design, and art.
Frequently Asked Questions
What is the difference between HEX and RGB?
They represent the same information differently. HEX uses base-16 notation (#RRGGBB) while RGB uses decimal (rgb(R, G, B)). Both specify exact amounts of red, green, and blue. HEX is more compact for CSS; RGB is easier to read and manipulate programmatically.
How do I find a color's complementary color?
Convert to HSL, add 180° to the hue (wrapping past 360°), and convert back. Complementary colors create maximum contrast and are widely used in design for call-to-action buttons, alerts, and visual emphasis.
Which color format should I use in CSS?
All three are valid in CSS. HEX is the most widely used and compact. RGB is useful when you need to manipulate opacity (rgba). HSL is ideal when creating design systems because adjusting hue, saturation, or lightness is intuitive. Modern CSS also supports oklch and color-mix() for even more control.