Free 100% In-Browser Tool

Color Picker & Palette Code Extractor

Inspect color values, convert between HEX, RGB, and HSL, and check contrast ratios.

Quick Answer:Pick a color or type a HEX code. The tool instantly displays RGB, HSL, luminance, and black vs white text contrast recommendations.
Initializing tool...

Privacy First: 100% Client-Side Processing

Processed in your browser. Files are never uploaded.

How to Use the Color Picker: HEX, RGB, HSL & Palette Extractor

  1. 1Use the visual color picker or enter a 6-character hexadecimal color code.
  2. 2Read the converted RGB channel values and HSL hue/saturation/lightness values.
  3. 3Review the calculated relative luminance to verify WCAG accessible contrast.
  4. 4Click on any code to copy the HEX, RGB, or HSL format to your clipboard.

Formula & How It Works

WCAG Relative Luminance & HSL Transform

Luminance = 0.2126R + 0.7152G + 0.0722B; HSL converted via max/min color deltas

Transforms sRGB space into relative perceptual luminance and cylindrical HSL coordinates.

Worked Examples

Analyzing Toolzy Blue (#3B82F6)

Input: HEX: #3B82F6

Explanation: Calculates normalized color channels and verifies black text readability.

Result: RGB: rgb(59, 130, 246), HSL: hsl(217, 91%, 60%), Dark: False

Frequently Asked Questions

What is the difference between RGB and HSL?▼

RGB describes color as red, green, and blue light components; HSL describes color intuitively by Hue (tint), Saturation (intensity), and Lightness.

What is WCAG color contrast?▼

The Web Content Accessibility Guidelines require a minimum 4.5:1 contrast ratio between body text and its background for normal text readability.

How are 3-digit hex codes expanded?▼

A 3-digit hex code like #F00 is expanded by duplicating each character, becoming #FF0000 (pure red).

What is relative luminance?▼

Relative luminance measures the relative brightness of any point in a colorspace, normalized to 0 for black and 1 for white.

Quick Reference & Conversion Table

Color NameHEX CodeRGB ChannelsHSL Values
Toolzy Blue#3B82F6rgb(59, 130, 246)hsl(217, 91%, 60%)
Emerald Green#10B981rgb(16, 185, 129)hsl(160, 84%, 39%)
Amber Gold#F59E0Brgb(245, 158, 11)hsl(38, 92%, 50%)
Rose Pink#F43F5Ergb(244, 63, 94)hsl(350, 89%, 60%)

⚠️ Common Pitfalls to Avoid

  • •Omitting the leading '#' symbol in CSS stylesheets.
  • •Assuming light colors will have sufficient contrast against white backgrounds.

💡 Practical Real-World Uses

  • •Matching brand color schemes from logos and marketing graphics.
  • •Auditing website accessibility (WCAG 2.1 AA/AAA) contrast compliance for buttons.
Last reviewed & updated: 2026-11-11
Free & Open Access
Related Utilities

Explore complementary calculators and converters with instant client-side execution

More in Images

Explore Other Tool Categories

Browse our full collection of 50 free web utilities

View All 8 Categories