{ Color Picker }

// pick any color — get every format instantly

Free browser-based color picker. Pick any color and instantly get HEX, RGB, HSL, HSB, and CMYK values. No sign-up required.

R 232
G 121
B 249
H 295°
S 92%
L 73%
// COLOR VALUES
HEX #e879f9
RGB rgb(232, 121, 249)
HSL hsl(295, 92%, 73%)
HSB hsb(295, 51%, 98%)
CMYK cmyk(7%, 51%, 0%, 2%)
CSS VAR --color: #e879f9;
CONTRAST RATIO
Aa On Black
Aa On White
RECENT COLORS
No recent colors yet

HOW TO USE

  1. 01
    Pick a color

    Click the color swatch or use the RGB/HSL sliders to select any color.

  2. 02
    Copy the value

    Click the ⎘ button next to any format — HEX, RGB, HSL, HSB, CMYK, or CSS variable.

  3. 03
    Use the eyedropper

    Click Eyedropper to pick a color directly from any pixel on your screen (Chrome/Edge).

FEATURES

HEX / RGB / HSL HSB & CMYK Eyedropper API Contrast Ratio Recent Colors One-click Copy

USE CASES

  • 🎨 Convert between color formats for CSS
  • 🖌️ Pick colors from existing designs
  • ♿ Check WCAG contrast ratios
  • 📋 Get CSS variables instantly

WHAT IS THIS?

A free browser-based color picker that converts any color into every common format instantly — HEX, RGB, HSL, HSB (HSV), and CMYK — with one-click copy, contrast ratio checking, and screen eyedropper support.

RELATED TOOLS

FREQUENTLY ASKED QUESTIONS

What color formats does this tool support?

The Color Picker outputs six formats: HEX (#rrggbb), RGB (red, green, blue), HSL (hue, saturation, lightness), HSB/HSV (hue, saturation, brightness), CMYK (cyan, magenta, yellow, black), and a CSS custom property (--color: value).

How does the Eyedropper work?

The Eyedropper button uses the browser's native EyeDropper API to let you sample any color from your screen. It is currently supported in Chrome 95+, Edge 95+, and Opera. Firefox and Safari do not support this API yet.

What is the contrast ratio shown?

The contrast ratio compares your selected color against pure black and pure white backgrounds. A ratio of 4.5:1 or higher passes WCAG AA for normal text, and 3:1 for large text. Higher is better for accessibility.

Is any data sent to a server?

No. This tool is 100% client-side JavaScript. No color data, inputs, or history is ever sent to any server. Recent colors are stored only in your browser's localStorage.

What is HSB vs HSL?

Both use hue and saturation, but the third channel differs. HSL uses Lightness — 50% is a pure color, 0% is black, 100% is white. HSB (also called HSV) uses Brightness — 100% is the purest/brightest form of a color, 0% is black.

How do I convert HEX to RGB manually?

Split the hex code into 3 pairs (e.g. #e879f9 → e8, 79, f9), then convert each pair from base-16 to decimal. e8 = 232, 79 = 121, f9 = 249 → rgb(232, 121, 249). This tool does it instantly for you.

What Is a Color Picker?

A color picker is an interactive tool that lets designers and developers select any color and instantly retrieve its value in multiple formats. Instead of doing manual hex-to-RGB conversions in your head or hunting through documentation, a color picker centralizes everything: choose a color once, get every format you need in one click.

This free online color picker works entirely in your browser — no installation, no account, no server calls. Just open the page and start picking.

HEX, RGB, HSL — Which Format Should You Use?

The right format depends on where you're working:

How to Use the Eyedropper to Pick Screen Colors

The Eyedropper button uses the browser's native EyeDropper API — available in Chrome and Edge — to let you sample any color from any part of your screen. This is useful when you're looking at a design mockup, a website, or an image and need to extract the exact color value.

Click the Eyedropper button, then click anywhere on your screen. The color picker will immediately update all format outputs to match the sampled color and add it to your recent colors history.

Understanding Contrast Ratios

The WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios to ensure text is readable by people with low vision or color blindness. This tool shows your color's contrast ratio against both white and black backgrounds:

When choosing text or background colors for a web project, always check the contrast ratio first. Good contrast improves readability for everyone, not just users with visual impairments.

Recent Colors History

Every color you pick is automatically saved to a recent colors strip at the bottom of the output panel. Click any swatch to instantly restore that color across all formats. Your history persists between sessions using browser localStorage — no account needed. Click Clear to wipe the history at any time.

CSS Custom Properties

The CSS VAR output gives you a ready-to-paste CSS custom property in the format --color: #rrggbb;. This is useful when you're building a design system or theming a component and want to define colors as variables. Simply rename the variable to something meaningful (e.g. --brand-primary) and drop it into your :root block.