Color Picker & Converter

Pick colors and convert between HEX, RGB, HSL, and CMYK formats instantly.

About This Tool

The Color Picker lets you select any color visually or enter a value in HEX, RGB, or HSL format and instantly convert between all three. It is an essential tool for web designers, UI/UX professionals, and anyone who needs precise color values for CSS, graphic design, or branding work.

#3B82F6
color: #3B82F6;
background-color: rgb(59, 130, 246);
background-color: hsl(217, 91%, 60%);
/* CMYK: cmyk(76%, 47%, 0%, 4%) */

Preview Text - Normal Text

Preview Text - Large Text

21.00:1Contrast Ratio
WCAG AA
Normal TextPass
Large TextPass
WCAG AAA
Normal TextPass
Large TextPass

How It Works

Colors can be represented in multiple mathematical models. HEX is a hexadecimal notation (#RRGGBB) where each pair represents Red, Green, and Blue intensity from 00 to FF (0–255 in decimal). RGB (Red, Green, Blue) uses decimal values from 0 to 255 for each channel, defining colors as combinations of light intensities.

HSL (Hue, Saturation, Lightness) represents color in a more intuitive way: Hue is the color angle on a 360° color wheel (0°=Red, 120°=Green, 240°=Blue), Saturation is the color intensity from 0% (gray) to 100% (vivid), and Lightness ranges from 0% (black) to 100% (white) with 50% being the pure color.

Conversion between these formats involves mathematical transformations. HEX to RGB is a direct base-16 to base-10 conversion. RGB to HSL requires computing the chroma (difference between max and min channel values), then deriving hue from the dominant channel, saturation from chroma relative to lightness, and lightness as the average of max and min values.

Share

How to Use

  1. Pick a color from the color picker or enter a value in any format (HEX, RGB, HSL, CMYK).
  2. All other formats update automatically in real-time.
  3. Click the copy button next to any format to copy the value to your clipboard.
  4. Use the palette generator to create complementary, analogous, or triadic color schemes.
  5. Check text/background contrast ratio for WCAG accessibility compliance.

Frequently Asked Questions

What is the difference between HEX, RGB, HSL, and CMYK?
HEX is a 6-digit hexadecimal code used in web design (#FF5733). RGB defines colors by Red, Green, Blue values (0-255). HSL uses Hue, Saturation, Lightness which is more intuitive for designers. CMYK (Cyan, Magenta, Yellow, Key/Black) is used for print design.
What is a WCAG contrast ratio?
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios for text readability. AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 for normal text and 4.5:1 for large text.
How do I create a good color palette?
Use complementary colors (opposite on the color wheel) for high contrast, analogous colors (adjacent) for harmony, or triadic colors (evenly spaced) for vibrant designs. Our palette generator creates these automatically.
Can I use this tool for print design?
Yes! This tool converts colors to CMYK format which is used for print. However, screen colors may look different when printed, so always do a test print for critical color matching.
Why do my colors look different on different screens?
Screens have different color profiles, brightness, and calibration. Use standardized color codes (HEX/RGB) to ensure consistency, and calibrate your monitor for accurate color reproduction.

Related Tools

Related Articles

84+

Tools available

97+

Blog articles

English & 한국어

Languages

Bookmark this page! We add new free tools every week.