Design

Hex Color Picker

Pick any color and instantly see its HEX, RGB, and HSL values. Explore complementary, triadic, and analogous color harmonies.

Quick Answer

Click the color swatch to open your system color picker, or type a HEX/RGB value directly. The tool instantly converts between HEX, RGB, and HSL formats and generates complementary, triadic, and analogous color palettes.

Pick a Color

Click to pick

CSS Values

color: #EC4899;

color: rgb(236, 72, 153);

color: hsl(330, 81%, 60%);

Color Harmonies

Complementary

#EC4899
#46EC99

Triadic

#EC4899
#99EC46
#4699EC

Analogous

#EC4899
#EC4646
#EC46EC

About This Tool

The Hex Color Picker is a comprehensive color exploration tool designed for designers, developers, and anyone who works with digital color. It provides instant conversion between the three most common color formats used in web design and software development: HEX (hexadecimal), RGB (Red, Green, Blue), and HSL (Hue, Saturation, Lightness).

At the heart of the tool is an interactive color selector that connects to your operating system's native color picker. Click the large color swatch to open a full-featured color chooser with gradient maps, color spectrum displays, and precise value inputs. As you select colors, all three format displays update simultaneously, giving you instant access to the values you need for your project.

The HEX format is the most widely used color notation in web development. It represents colors as a six-character hexadecimal string preceded by a hash symbol. Each pair of characters encodes one of the three color channels (red, green, blue) with values from 00 to FF. HEX codes are compact, universally supported in CSS, and easy to copy-paste between design tools and code editors.

Understanding Color Models

The RGB model defines colors by specifying the intensity of three additive light channels. Each channel ranges from 0 (no light) to 255 (full intensity). When all three channels are at 255, the result is white; when all are at 0, the result is black. RGB is the native color model for digital screens and is used directly in CSS via the rgb() function.

The HSL model represents colors in a way that aligns more closely with human perception. Hue is the pure color on the color wheel (measured in degrees from 0 to 360), Saturation is the intensity or purity of the color (0% is gray, 100% is fully saturated), and Lightness controls the brightness (0% is black, 100% is white, 50% is the pure color). HSL is particularly useful for creating systematic color palettes because you can generate variations by adjusting a single parameter.

Color Harmonies

Beyond simple format conversion, this tool generates three types of color harmonies based on established color theory. Complementary colors sit directly opposite each other on the color wheel, creating maximum contrast and visual energy. They are ideal for call-to-action buttons, highlights, and attention-grabbing accents.

Triadic colors form an equilateral triangle on the color wheel, spaced 120 degrees apart. This harmony provides a vibrant, balanced palette with strong visual contrast while maintaining color richness. Many brand identities and illustration palettes are built on triadic schemes.

Analogous colors are neighbors on the color wheel, spaced 30 degrees apart. They create harmonious, cohesive palettes that feel natural and pleasing. Analogous schemes are commonly used for backgrounds, gradients, and designs where a unified mood is desired. Nature frequently exhibits analogous color relationships — think of autumn leaves transitioning from yellow to orange to red.

Click any swatch in the harmony palettes to make it your active color, allowing you to quickly explore color relationships and build multi-color palettes. Each swatch displays its HEX value for easy reference and copying.

Frequently Asked Questions

What is a HEX color code?
A HEX color code is a six-digit hexadecimal number preceded by a hash symbol (#) that represents a color in the RGB color model. The first two digits represent red, the middle two represent green, and the last two represent blue. Each pair ranges from 00 (no intensity) to FF (full intensity), giving 16,777,216 possible colors. For example, #FF0000 is pure red, #00FF00 is pure green, and #0000FF is pure blue. HEX codes are the most common way to specify colors in web design and CSS.
What is the difference between RGB and HSL color models?
RGB (Red, Green, Blue) defines colors by mixing three light channels, each ranging from 0 to 255. It maps directly to how screens produce color. HSL (Hue, Saturation, Lightness) is a more intuitive model: Hue is the color angle on the color wheel (0-360 degrees), Saturation controls how vivid the color is (0-100%), and Lightness controls brightness (0-100%). HSL is easier for humans to reason about — for example, to make a color lighter, you just increase the L value.
What are complementary, triadic, and analogous colors?
These are color harmony schemes based on relationships on the color wheel. Complementary colors sit directly opposite each other (180 degrees apart) and create high contrast. Triadic colors are evenly spaced at 120-degree intervals, forming a triangle on the color wheel for vibrant, balanced palettes. Analogous colors sit next to each other (30 degrees apart) and create harmonious, low-contrast combinations. Designers use these schemes to create visually appealing and balanced color palettes.
How do I choose accessible color combinations?
For accessibility, ensure sufficient contrast between text and background colors. WCAG 2.1 guidelines require a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (18px+ or 14px+ bold). Dark text on light backgrounds (or vice versa) generally provides better readability. Use a contrast checker tool to verify your combinations. When in doubt, pure black (#000000) on white (#FFFFFF) provides the maximum contrast ratio of 21:1.
Can I use this picker for CSS and web development?
Yes. The HEX, RGB, and HSL values produced by this tool can be used directly in CSS. For HEX, use: color: #EC4899. For RGB: color: rgb(236, 72, 153). For HSL: color: hsl(330, 82%, 60%). Modern CSS supports all three formats. HSL is particularly useful in CSS because you can easily create color variations by adjusting individual components — for example, creating hover states by changing only the lightness value.
What is the color wheel and how does it relate to this tool?
The color wheel is a circular arrangement of colors based on the HSL hue value (0-360 degrees). Red is at 0/360 degrees, green at 120 degrees, and blue at 240 degrees. The native color input in this tool maps directly to the color wheel. When you select a color, the tool calculates its position on the wheel and uses that to determine complementary (opposite), triadic (triangle), and analogous (adjacent) color harmonies.