HomeToolsColor Picker
🎨 Free Tool · No Signup

Free Color Picker — HEX RGB HSL

Pick any color and instantly convert between HEX, RGB, HSL and CSS formats. Generate palettes, check contrast for accessibility, explore color harmonies. Works in your browser — no upload, no signup.

Click to copy
#
RGB
R 59
G 130
B 246
HSL
H 217°
S 91%
L 60%
HEX
#3b82f6
RGB
rgb(59, 130, 246)
HSL
hsl(217, 91%, 60%)
CSS Variable
--color: #3b82f6;
🎨 Color Harmonies
♿ Contrast Checker (WCAG 2.1)
Foreground
Background
Sample Text Aa
💾 Saved Colors
Click "+ Save Current" to save colors...
How to Use This Tool
1

Pick a color

Click the color box to open your browser's native color picker, or type a HEX code directly. Use the eyedropper to sample from your screen (Chrome/Edge).

2

Fine-tune with sliders

Drag RGB or HSL sliders to adjust the color precisely. HSL sliders are easier for adjusting brightness and saturation independently.

3

Copy the value you need

Click Copy HEX, Copy RGB, or Copy HSL to copy the format your project needs. CSS Variable format is ready to paste into your stylesheet.

4

Check contrast & explore harmonies

Use the contrast checker for WCAG accessibility compliance. Explore complementary, analogous, and triadic harmonies to build a color palette.

💡 The eyedropper works on Chrome and Edge. Click it, then click any color on your screen — including from another website, an image, or any application window visible in your browser.
📋 In This Page
  1. HEX, RGB, HSL — which format to use
  2. How to convert between color formats
  3. Color contrast and accessibility (WCAG)
  4. Color harmonies for designers
  5. Frequently asked questions

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

Every digital color can be expressed in multiple formats. They all represent the same color — the choice depends on your context and workflow.

FormatExampleBest ForSupported In
HEX#3b82f6HTML attributes, CSS stylesheets, design toolsAll browsers, Figma, Photoshop
RGBrgb(59,130,246)When mixing colors programmatically or with opacityAll browsers, CSS, JavaScript
RGBArgba(59,130,246,0.8)Semi-transparent overlays, shadows, backgroundsAll modern browsers
HSLhsl(217,91%,60%)Dynamic color generation, dark/light mode, CSS variablesAll modern browsers
CMYKC:76 M:47 Y:0 K:4Print design, physical mediaInDesign, Illustrator
💡For modern web development, HSL is the most powerful format — you can generate entire color scales by varying lightness (0–100%) while keeping hue and saturation fixed. This is how CSS frameworks like Tailwind build their color systems.

How to Convert Between Color Formats

HEX to RGB

Split the 6-digit HEX into three pairs. Convert each pair from base-16 (hexadecimal) to base-10 (decimal). Example: #1a2b3c → 1A=26, 2B=43, 3C=60 → rgb(26, 43, 60).

RGB to HSL

Normalize R, G, B to 0–1 range. Find max and min values. Lightness = (max+min)/2. Saturation depends on lightness. Hue is calculated from which channel is max. This tool handles the conversion instantly — no manual calculation needed.

💡Use the sliders in this tool to interactively convert colors. The HEX, RGB, and HSL values all update simultaneously as you move any slider — making it easy to understand the relationships between formats.

Color Contrast and Accessibility (WCAG 2.1)

The Web Content Accessibility Guidelines (WCAG) specify minimum contrast ratios between text and background colors to ensure readability for users with visual impairments. Approximately 8% of men and 0.5% of women have some form of color vision deficiency.

WCAG LevelNormal TextLarge Text (18pt+)UI Components
AA (minimum)4.5:13:13:1
AAA (enhanced)7:14.5:1
Decorative onlyNo contrast requirement

Use the contrast checker above to verify your color combinations meet WCAG standards before deploying. This is especially important for buttons, links, form labels, and any text overlaid on colored backgrounds.

Color Harmonies for Designers

Frequently Asked Questions

A HEX code is a 6-digit hexadecimal number representing a color as #RRGGBB. Each pair (RR, GG, BB) ranges from 00 to FF (0–255 in decimal), controlling red, green and blue intensity. #FF0000 = pure red, #00FF00 = pure green, #0000FF = pure blue, #FFFFFF = white, #000000 = black.
HEX is compact notation for HTML/CSS. RGB defines color by red/green/blue channels (0–255). HSL (Hue, Saturation, Lightness) is more intuitive — hue is the colour angle (0–360°), saturation is intensity (0–100%), lightness is brightness (0–100%). All three represent the same colors — the choice is based on context and what's easier to manipulate in your workflow.
Split the 6-digit HEX into 3 pairs. Convert each from hexadecimal to decimal. For #1a2b3c: 1A=26, 2B=43, 3C=60, giving rgb(26, 43, 60). Use this tool to convert instantly without manual calculation. You can also type the HEX value and all formats update automatically.
Color contrast is the luminance difference between foreground and background, expressed as a ratio (e.g. 4.5:1). WCAG 2.1 requires 4.5:1 minimum for normal text and 3:1 for large text. Poor contrast makes text hard to read — especially for the 300+ million people worldwide with visual impairments. Use the contrast checker in this tool before finalising any text+background color combination.
The eyedropper lets you click anywhere on your screen to sample the exact pixel color. Click the Eyedropper button, then click any color on your screen — a website, an image, a video, or any visible application. The tool uses the browser's EyeDropper API, supported in Chrome 95+, Edge 95+, and Opera. Safari and Firefox don't support this API yet.
CSS custom properties (variables) let you define a color once and reuse it: defined as --primary-color: #3b82f6 in :root and referenced as color: var(--primary-color). This enables consistent color systems, easy dark/light mode switching, and single-point color updates across large stylesheets. This tool generates ready-to-paste CSS variable declarations for any color.

More Free Tools on ToolLoom

📅 June 2026 · Written by the ToolLoom Team · Reviewed for accuracy June 2026
About ToolLoom: We build free tools for Indian students, professionals and creators. Color conversions use standard mathematical formulas. WCAG contrast ratios per W3C specification. Found an error? Email contact@toolloom.in