Web Design Utility

Color Picker & Multi-Format Converter

Convert bidirectionally between HEX, RGB, HSL, and CMYK formats. Inspect WCAG 2.1 contrast ratios and generate harmonic UI palettes in real time.

#3B82F6
vs White: 3.5:1 (AA Fail) vs Black: 6.0:1 (AA Pass)
HEX Code
#3B82F6
RGB / RGBA
rgb(59, 130, 246)
HSL / HSLA
hsl(217, 91%, 60%)
CMYK (Estimated)
cmyk(76%, 47%, 0%, 4%)

Harmonic Color Schemes

Monochromatic Tints & Shades

1. Digital Color Spaces and Format Architecture

Digital displays construct visual color through additive light combinations of red, green, and blue pixels. In frontend web architecture, four primary color formats serve distinct operational purposes:

2. Technical Comparison of Color Formats

Format Sample Syntax Primary Medium Key Advantage
HEX / HEXA #3B82F6 / #3B82F6CC Web & Mobile UI Compact string notation, universal token standard
RGB / RGBA rgb(59, 130, 246) Digital Displays & GPU Direct mapping to screen hardware sub-pixels
HSL / HSLA hsl(217, 91%, 60%) Design Systems & CSS Human-intuitive adjustments for hover states and dark themes
CMYK cmyk(76%, 47%, 0%, 4%) Commercial Offset Print Physical ink mixing guidance for packaging and paper

3. WCAG 2.1 Contrast Standards Explained

The Web Content Accessibility Guidelines (WCAG) 2.1 dictate minimum contrast ratios between text and background colors to protect readability for users with low vision or color deficiencies:

This tool calculates the exact relative luminance of your chosen color against pure black (#000000) and pure white (#ffffff) to determine accessibility compliance instantly.

4. Practical Limitations & Printing Notes

5. Frequently Asked Questions

How do I convert a 3-character HEX code to 6 characters?

A 3-character hex code like #38F is shorthand notation where each character is duplicated. #38F expands mathematically to #3388FF. Typing #38F into our HEX field automatically normalizes and parses the full 6-digit equivalent.

What is the difference between HSL and HSV/HSB?

Both models use cylindrical coordinates, but HSL uses Lightness (where 100% lightness is always pure white regardless of hue), whereas HSV/HSB uses Value/Brightness (where 100% brightness matches the brightest shade of that hue). CSS natively supports HSL.

Are my color choices or palettes saved on remote servers?

No. All conversions, palette calculations, and contrast algorithms run 100% locally inside your browser via JavaScript. No color selections or telemetry are uploaded.

6. Related Developer Utilities