CoderTools

Color Picker/Converter

Pick colors and convert between different formats

No history yet
Good Match ΔE: 0.00

Alternative Matches:

Preview text appearance

The quick brown fox jumps over the lazy dog

Contrast Ratio
5.48:1
WCAG AA
Normal Text ? Large Text ?
WCAG AAA
Normal Text ? Large Text ?
color: #6366f1;
background-color: #6366f1;
border-color: #6366f1;

About Color Models

Colors are fundamental to digital design, and different applications require different color models. This tool bridges the gap between these models, offering precise conversions and helpful utilities for designers and developers.

Understanding different color models is essential for web development, UI design, and digital art creation.

Supported Color Formats & Features

HEX

#RRGGBB

RGB

0-255, 0-255, 0-255

HSL

0°-360°, 0-100%, 0-100%

HSV

0°-360°, 0-100%, 0-100%

CMYK

0-100%, ×4

YCbCr

16-235, 16-240, 16-240

Lab

L*: 0-100, a*/b*: -128 to +127

Color Format Details

HEX (Hexadecimal)

HEX colors use a 6-digit hexadecimal notation preceded by #. Each pair represents Red, Green, and Blue values (00-FF). Short notation (#RGB) expands to #RRGGBB. Supports 8-digit format for alpha transparency (#RRGGBBAA).

Range: #000000 (black) to #FFFFFF (white) Example: #FF5733 = R:255, G:87, B:51

Usage: CSS, HTML, web design, most programming languages

RGB (Red, Green, Blue)

The RGB model is an additive color model where red, green, and blue light are combined to create colors. This model directly maps to how screens emit light, making it the native color space for digital displays.

Range: Each channel 0-255 (8-bit) or 0.0-1.0 (normalized) Example: rgb(255, 87, 51) or rgba(255, 87, 51, 0.5) with alpha

Usage: Screen displays, LED lighting, CSS, digital imaging

HSL (Hue, Saturation, Lightness)

HSL represents colors in terms of human perception. Hue is the color angle on a color wheel, Saturation is the intensity, and Lightness is how light or dark the color is. This makes color manipulation more intuitive.

Range: H: 0°-360°, S: 0%-100%, L: 0%-100% Example: hsl(14, 100%, 60%) = warm orange color

Usage: CSS, color scheme generation, intuitive color picking

HSV/HSB (Hue, Saturation, Value/Brightness)

HSV (also called HSB) is similar to HSL but uses Value instead of Lightness. Value represents the brightness where 100% is the brightest. This model is preferred in many graphics applications as it aligns better with how artists think about color.

Range: H: 0°-360°, S: 0%-100%, V: 0%-100% Example: hsv(14, 80%, 100%) = vibrant orange

Usage: Photoshop, GIMP, color pickers in graphics software

CMYK (Cyan, Magenta, Yellow, Key/Black)

CMYK is a subtractive color model used in printing. Unlike RGB which adds light, CMYK subtracts light from white paper. The 'K' stands for Key (black) to improve print quality and reduce ink usage.

Range: Each channel 0%-100% Example: cmyk(0%, 66%, 80%, 0%) = orange tone

Usage: Print design, commercial printing, packaging

YCbCr (Luminance, Chrominance)

YCbCr separates the luma (Y) from chroma (Cb, Cr) components. This separation allows efficient video compression because human eyes are more sensitive to brightness than color. Commonly used in JPEG, MPEG, and broadcast standards.

Range: Y: 16-235 (digital), Cb/Cr: 16-240 (centered at 128) Example: Y:166, Cb:90, Cr:198 ≈ orange

Usage: JPEG compression, video encoding (H.264, HEVC), TV broadcasting

Lab (CIE L*a*b*)

Lab is a perceptually uniform color space designed to approximate human vision. L* represents lightness, a* the green-red axis, and b* the blue-yellow axis. A perceptual distance of 1 unit looks roughly the same regardless of the color.

Range: L*: 0-100, a*: -128 to +127, b*: -128 to +127 Example: L*:70, a*:45, b*:65 ≈ orange

Usage: Color science, color difference calculation (Delta E), professional color management

Pantone (PMS)

Pantone Matching System (PMS) is a proprietary color standardization system widely used in printing, fashion, and product design. Each color has a unique code ensuring consistent reproduction across different materials and manufacturers.

Format: PANTONE [Number] C/U/M (Coated/Uncoated/Matte) Example: PANTONE 186 C (Coca-Cola Red), PANTONE 286 C (IBM Blue)

Usage: Brand identity, commercial printing, packaging design, textile industry

Note: These are approximate digital representations. Actual Pantone colors may vary in print.

Color Theory Basics

Colors exist in different 'spaces' optimized for different purposes. Additive models (RGB) work by adding light, while subtractive models (CMYK) work by absorbing light. Perceptual models (Lab) align with human vision.

Additive Color Model

RGB combines red, green, and blue light. Adding all three at full intensity creates white. This is how screens, projectors, and digital displays work.

=

Subtractive Color Model

CMYK absorbs (subtracts) light wavelengths from white. Combining all colors creates black (in theory). This is how inks and paints work.

=

Perceptual Color Model

Lab and similar spaces are designed around human perception, making them ideal for color comparison and correction.

L* a* b*

Conversion Notes

  • RGB ↔ HEX: Lossless conversion, just format change
  • RGB ↔ HSL/HSV: Lossless within gamut, may lose precision
  • RGB ↔ CMYK: May lose colors outside print gamut
  • RGB ↔ Lab: Uses D65 illuminant, sRGB color space assumed
  • RGB ↔ YCbCr: Uses BT.601 standard by default

WCAG Contrast Standards

The Web Content Accessibility Guidelines (WCAG) define minimum contrast requirements between text and background to ensure all users, including those with visual impairments, can read the content.

AA Level AA: Minimum 4.5:1 for normal text, 3:1 for large text
AAA Level AAA: Minimum 7:1 for normal text, 4.5:1 for large text

Common Use Cases

CSS color settings in web development
Color schemes in UI/UX design
Brand design and visual identity
Accessibility design compliance checks
Color conversion for print design
Data visualization chart coloring

Frequently Asked Questions

What is the difference between HEX, RGB, and HSL color formats?

HEX is a compact six-digit notation (e.g., #FF5733) that encodes the same red, green, and blue channels as RGB but in base-16. RGB (Red, Green, Blue) expresses each channel as a decimal number from 0 to 255, making it easy to read and manipulate in code. HSL (Hue, Saturation, Lightness) decouples the actual color angle from its intensity and brightness, which is far more intuitive when you want to create lighter tints or darker shades of a color without guessing RGB values. All three formats are fully interconvertible.

What does the alpha channel (A) mean in RGBA and HSLA?

The alpha channel controls a color’s opacity, or how transparent it is. In RGBA and HSLA, the ‘A’ value ranges from 0 (fully transparent) to 1 (fully opaque), or from 0% to 100% in CSS percentage syntax. For example, rgba(255, 0, 0, 0.5) is a red that is 50% transparent, allowing whatever is behind it to show through. Alpha is widely used for overlays, shadows, and hover effects. Note that alpha is not part of a standard HEX code unless you use 8-digit HEX notation (e.g., #FF573380).

What is the difference between HSL and HSV (HSB)?

Both HSL and HSV (also called HSB — Hue, Saturation, Brightness) describe color using a hue angle, but they define their third dimension differently. In HSL, a Lightness of 50% with full Saturation gives the pure vivid color, while 0% is black and 100% is white. In HSV, a Value (Brightness) of 100% with full Saturation gives the pure vivid color, and 0% Value is always black regardless of saturation. HSV is more common in image-editing software like Photoshop, while HSL is more common in CSS and web design.

How are CMYK colors different from RGB colors?

RGB uses additive color mixing, where light is combined to produce color: mixing all three channels at full intensity creates white. CMYK uses subtractive color mixing, where pigments absorb light: mixing all ink channels at full produces near-black. RGB is the native model for screens, cameras, and digital displays. CMYK is the standard for offset printing. When you design for print, convert your colors to CMYK early, since not all RGB colors can be reproduced in print — especially vibrant blues and electric greens, which often look dull on paper.

Why do colors look different on different screens or devices?

Color appearance varies between devices because of differences in display technology, color profiles, and hardware calibration. Each screen has a color gamut — the range of colors it can display. Budget monitors may cover only 60-72% of sRGB, while professional displays cover 99% of sRGB or the wider P3 or AdobeRGB gamuts. Color profiles (ICC profiles) tell the operating system how to interpret numeric color values for that specific display. Without proper calibration, the same #FF5733 can look significantly orange on one screen and red-orange on another. For critical color work, use a hardware-calibrated display and always specify the target color space.

Quick Menu

No recent tools