CPS CHECK

COLOR PICKER & CONVERTER

Select a color to instantly get its HEX, RGB, and HSL values. Perfect for web design and CSS.

#00c864

Click the box above to open the native color picker

HEX
#00C864
RGB
rgb(0, 200, 100)
HSL
hsl(150, 100%, 39%)

Color Picker: The Ultimate Hex & RGB Extraction Tool

Extract precise HEX codes, RGB values, and HSL data for web design, digital art, and UI development.

🎨
16.7M
Possible RGB colors
#️⃣
HEX
Web design standard
🌈
HSL
Human-readable format
👁️
Contrast
Accessibility metric

🎯The Language of Digital Color

Computers understand color entirely through mathematics. Every pixel on your screen is made of three tiny LEDs: Red, Green, and Blue. By adjusting the brightness of these three lights from 0 to 255, a monitor can create 16.7 million distinct colors.

🧠

Did You Know?

HEX codes (#FF0000) are just RGB values written in Base-16 hexadecimal math. The first two letters represent Red, the middle two are Green, and the last two are Blue. "FF" means 255 (maximum brightness), and "00" means 0 (off).

📊Color Formats Explained

HEX (#1A2B3C)

The absolute standard for HTML/CSS web design. Compact and easily copy-pasted.

RGB (25, 120, 200)

Used heavily in graphic design software like Photoshop and digital painting.

HSL (210°, 80%, 50%)

Hue, Saturation, Lightness. The best format for humans because you can easily make a color "darker" just by lowering the Lightness percentage.

🛠️How to Choose Aesthetic Colors

01
🌈

Use the 60-30-10 Rule

High Impact

In UI design, 60% of your app should be a neutral background color, 30% a secondary UI color, and only 10% an aggressive accent color (like a vibrant primary button).

02
👁️

Check WCAG Contrast

High Impact

Never put light gray text on a white background. Use a contrast checker to ensure your foreground and background colors have at least a 4.5:1 contrast ratio for readability.

03
🎨

Steal from Nature

Medium Impact

Nature naturally produces harmonious color palettes. If you are stuck, find a beautiful photograph of a sunset or forest, and use a color picker to extract the exact HEX codes.

💡

Pro Tip

Pure black (#000000) causes severe eye strain when placed next to pure white text because the contrast is too extreme. Always use a very dark gray (like #121212) for "Dark Mode" backgrounds instead of pure black.

Key Takeaways

  • 16.7 million colors are generated from adjusting Red, Green, and Blue sub-pixels.
  • HEX codes are mathematical representations of RGB values in base-16 format.
  • HSL is the best format for programmatic UI manipulation and human readability.
  • Designing with accessible contrast ratios is required by WCAG guidelines.
  • Harmony rules and real-world sampling can quickly solve UI color palette challenges.

Frequently Asked Questions

CMYK is a subtractive color model used exclusively for physical printing with ink pigments. Browsers operate natively in additive RGB color space. Converting between the two is mathematically complex and inherently lossy because some RGB colors (especially bright cyans and greens) simply cannot be reproduced by ink pigments.

All three are valid in modern CSS. HEX is the shortest to type and copy-paste. RGB is useful when you need to add transparency (via rgba()). HSL is the most intuitive for programmatic manipulation—if you need a hover state that's 10% lighter, simply increment the L value.

HSL (Hue, Saturation, Lightness) and HSV/HSB (Hue, Saturation, Value/Brightness) are related but different models. In HSL, a color at 100% lightness is always white. In HSV, a color at 100% value is the pure saturated color. HSL is more commonly used in CSS; HSV is more common in image editing software like Photoshop.

When you click the color box, most Chromium-based browsers (Chrome, Edge, Opera) will open a native color picker that includes an eyedropper tool. This eyedropper allows you to click anywhere on your screen—including other browser tabs, images, and UI elements—to sample that exact pixel's color.

Per WCAG AA guidelines, normal-sized body text requires a minimum contrast ratio of 4.5:1 against its background. Large text (18pt+ or 14pt+ bold) requires a minimum of 3:1. Interactive elements like buttons and form inputs also require 3:1. For the highest AAA standard, normal text requires 7:1.

The tool calculates the perceived brightness of your selected color using the WCAG relative luminance formula: L = 0.299R + 0.587G + 0.114B. This weights green most heavily because the human eye is most sensitive to green light. The result determines whether the color label on the preview swatch should be black or white text for legibility.

Currently, the quickest way to input a specific HEX code is to click the color box to open the native OS color picker, then type your hex value directly into the picker's hex input field. The tool will instantly update all three format values (HEX, RGB, HSL) in real time.

Pick Your Perfect Color

Click the color swatch above to open the color picker and instantly convert your selection into HEX, RGB, and HSL values ready for your CSS or design tool.