Color Picker & Palette Generator — HEX, RGB, HSL Color Codes

Pick any color and get instant codes in HEX, RGB, HSL, CMYK, LAB, and XYZ. Switch to the Palette Generator to build harmonious brand color palettes using color theory — export as CSS variables, JSON, or save for later. Free color code picker online with contrast checking.

#
#3F7FE0
HEX
#3F7FE0
RGB
rgb(63, 117, 224)
HSL
hsl(220, 73%, 56%)
CMYK
cmyk(72%, 48%, 0%, 12%)
LAB
L 51, a 18, b -60
XYZ
22, 19, 73
Contrast check
Aa whiteAa blackOn white

What Is a Color Picker?

A color picker is a tool that lets you select any color visually and get its exact values across every format — HEX for web CSS, RGB for screen displays, HSL for design adjustments, CMYK for print production, and LAB/XYZ for precision color science. This tool works as a hex color code finder, an RGB to HEX converter, a hex to HSL converter, and a color contrast checker — all in one interface. Pick a color from the gradient canvas, type a hex code directly, or use the EyeDropper to sample any pixel on your screen.

What Is a Palette Generator?

A palette generator uses color theory to build harmonious sets of colors from a single seed color. Rather than guessing which colors look good together, you get mathematically balanced relationships: complementary pairs, triadic triplets, analogic families, and more. This makes it a brand color palette generator — pick your primary brand color, select a harmony mode, and generate a complete palette ready for your website, app, or design system.

Supported Color Formats

This tool converts between six color formats in real time. Click any format value to copy it to your clipboard:

FormatExampleBest Used For
HEX#3F7FE0CSS, web design, brand guidelines
RGBrgb(63, 127, 224)Screens, digital design, JavaScript
HSLhsl(220, 72%, 56%)Design adjustments — easy to tweak lightness and saturation
CMYKcmyk(72%, 43%, 0%, 12%)Print design — magazines, packaging, business cards
LABL 53, a 5, b -55Perceptually uniform — accurate color matching across devices
XYZ23, 22, 72Device-independent CIE standard, scientific applications

How to Convert HEX to RGB

HEX and RGB represent the same thing — red, green, and blue channel values — just in different number systems. A HEX color code like #3F7FE0 is three pairs of hexadecimal digits: 3F for red, 7F for green, E0 for blue. To convert each pair to RGB, convert from base-16 to base-10: 3F = 63, 7F = 127, E0 = 224, giving rgb(63, 127, 224).

This tool handles the conversion automatically — pick or enter any color and all six formats update in real time. This makes it both an RGB to HEX converter (click the HEX value to copy) and a hex to HSL converter (click HSL to copy that format).

Color Harmony Modes Explained

Color harmony is the art of combining colors that look aesthetically pleasing together. The palette generator uses color theory to calculate these harmonies mathematically:

What Are Complementary Colors?

Complementary colors sit directly opposite each other on the color wheel. Red and green, blue and orange, yellow and purple are the classic pairs. When placed side by side, complementary colors create maximum visual contrast — which is why they are used so heavily in call-to-action design, sports branding, and advertising. Select "Complementary" in the palette generator to instantly find the complementary pair for any color you pick.

What Is the 60-30-10 Color Rule?

The 60-30-10 rule is a design guideline for distributing colors in any visual project. It works for websites, interiors, presentations, and brand identity:

Generate a 3-color palette using the Complementary or Analogic mode, then apply the 60-30-10 split to your design. The result is a balanced, professional color scheme that avoids the common mistake of using too many colors at equal weight.

Color Contrast Checker

The contrast preview section under the color picker shows how your selected color looks with white text, black text, and as text on a white background. This is a quick color contrast checker for accessibility — ensuring text remains readable against your chosen background. WCAG accessibility guidelines recommend a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Dark colors generally need white text; light colors need black text. The preview updates in real time as you pick.

How to Use This Tool for Brand Design

Once you have your brand colors finalized and you are building design assets, our image resizer can prepare images in the exact dimensions your design requires, and our image converter handles format conversions between PNG, JPEG, WebP, and other formats for web-optimized delivery.

Frequently Asked Questions

How do I generate a color palette?

What does locking a color do?

How do I export a palette for CSS?

Can I pick a color from my screen?

How do I convert HEX to RGB?

What are complementary colors?

What is the 60-30-10 color rule?

Can I use this for print design (CMYK)?

Is this tool free to use?

Build Better Color Systems

Whether you are designing a website, building a brand identity, preparing artwork for print, or checking accessibility contrast, this tool gives you precise color values and harmonious palette generation in one place. Pick a color, get every format, generate a palette, and export it — all without leaving the page. For your visual assets, our image resizer handles dimension adjustments and our image converter prepares images in the right format for web or print.