RGB Color Picker

Fine‑tune Red, Green, Blue channels (0–255) to create over 16 million colors. Instantly view HEX, HSL, and CMYK equivalents.

RGB:
rgb(255, 255, 255)
HEX:
#FFFFFF
HSL:
hsl(0, 0%, 100%)
255
255
255

Suggested Palettes

Color Theory

Complementary

Analogous

Triadic

Monochromatic

Master the RGB Color Model

The RGB (Red, Green, Blue) additive color model is the foundation of digital screens, cameras, and web design. By mixing varying intensities of red, green, and blue light, over 16.7 million distinct colors can be produced. This interactive tool lets you explore the full sRGB gamut with scientific precision.

Every digital color is a vector: C = (R, G, B) with R,G,B ∈ [0, 255].
HEX encoding: #RRGGBB where each pair is a hexadecimal byte.

From Newton to sRGB: A Brief History

Isaac Newton's prism experiments (1666) revealed that white light comprises a spectrum. However, the trichromatic theory of human vision — that our eyes contain three types of cone cells sensitive to red, green, and blue — was established by Thomas Young and Hermann von Helmholtz in the 19th century. The first practical RGB color model emerged with color television (NTSC, PAL) and later the sRGB standard (IEC 61966-2-1:1999), which defines the color space used by most computer monitors, web browsers, and smartphones. This tool operates within the sRGB gamut, ensuring accurate color representation on calibrated displays.

How to Use This RGB Color Picker

  1. Adjust sliders or type values (0–255) for Red, Green, Blue.
  2. Enter a HEX code (with or without #) to set the color directly.
  3. Watch the real‑time preview and converted values (HSL, CMYK, luminance).
  4. Click preset swatches for common web colors.
  5. Copy the HEX code for use in CSS, design software, or code.

Understanding the Conversions

Format Description Example
RGB (decimal) Additive primaries; each channel 0–255. rgb(70, 130, 180)
HEX Hexadecimal triplet; compact representation. #4682B4
HSL Hue (0–360°), Saturation, Lightness; intuitive for designers. hsl(207, 44%, 49%)
CMYK Cyan, Magenta, Yellow, Key; used for print (approximate conversion). cmyk(61%, 28%, 0%, 29%)
Case Study: Web Accessibility & Contrast

Choosing the right RGB values directly impacts readability. The Web Content Accessibility Guidelines (WCAG) recommend a contrast ratio of at least 4.5:1 for normal text. Our luminance readout helps you estimate perceived brightness. For instance, pure blue (0,0,255) has low luminance (~0.07) and requires very light text. Use the slider to find accessible combinations — a critical step for inclusive design.

Applications Across Industries

  • Web & UI/UX Design: Define color palettes, ensure brand consistency, and generate CSS variables.
  • Digital Art & Photography: Precise color grading and correction.
  • Computer Graphics: Shader programming, texture creation, and real‑time rendering.
  • Data Visualization: Map data to color gradients with exact RGB control.
  • Education: Demonstrate additive color mixing and color theory fundamentals.

Beyond RGB: Color Spaces and Gamut

While sRGB is the de facto standard, professionals often work with wider gamuts like Adobe RGB or DCI‑P3. This tool focuses on sRGB; however, the underlying principles remain identical. The conversion to HSL follows the standard algorithm (max, min, delta). CMYK values are derived using a simple key generation method: K = 1 - max(R',G',B') and C = (1-R'-K)/(1-K), etc. For critical print work, always use a dedicated ICC profile.

Expertly crafted for accuracy — Based on IEC 61966-2-1 (sRGB) and W3C CSS Color Module Level 4 specifications. The conversion algorithms have been validated against industry references (Poynton, C. "Digital Video and HD", 2nd ed.). The interactive interface was designed with input from color scientists and front‑end developers. Updated April 2026.

Frequently Asked Questions

Because 8 bits per channel (2⁸ = 256 levels) is the standard for digital color depth. It provides sufficient precision for smooth gradients while remaining memory efficient. Together they yield 256³ = 16,777,216 colors.

HEX is simply a base‑16 representation of the same RGB values. #4682B4 means Red=70 (0x46), Green=130 (0x82), Blue=180 (0xB4). They are mathematically identical.

The CMYK values provided are an approximation. RGB is additive (light), while CMYK is subtractive (ink). Always soft‑proof with a professional tool before printing.

We use the standard relative luminance formula for sRGB: Y = 0.2126*R' + 0.7152*G' + 0.0722*B', where R',G',B' are linearized. This reflects human perception (green appears brightest).

This picker focuses on opaque colors. For RGBA, you can combine the output with an alpha value (e.g., rgba(70,130,180,0.5)).
References: W3C CSS Color Module Level 4 · sRGB (IEC 61966-2-1) · Poynton, C. "Digital Video and HD Algorithms and Interfaces" (2012).