HEX
Standard 6-digit hexadecimal notation
#3B82F6 Enter any color in your preferred format and convert it to every other color space instantly. Built for designers, developers, and color scientists.
Colors you enter will appear here for quick reuse.
Download your conversions or copy everything with one click.
Luminance
0.2355
Suggested text
Light
Contrast ratios
Harmony colors
Explore every compatible color space. Filter by category or search for a specific format.
Formats widely used across CSS, design systems, and modern web tooling.
Standard 6-digit hexadecimal notation
#3B82F6 8-digit hexadecimal notation including alpha channel
#3B82F6FF Red, Green, Blue integer values
rgb(59, 130, 246) RGB with alpha channel
rgba(59, 130, 246, 1) Hue, Saturation, Lightness
hsl(217°, 91.22%, 59.8%) HSL with alpha channel
hsla(217°, 91.22%, 59.8%, 1) Hue, Saturation, Value (same as HSB)
hsv(217°, 76.02%, 96.47%) Hue, Saturation, Brightness (alias of HSV)
hsb(217°, 76.02%, 96.47%) Hue, Whiteness, Blackness (CSS Level 4)
hwb(217°, 23.14%, 3.53%) Formats optimized for print workflows, prepress, and color-managed pipelines.
Cyan, Magenta, Yellow, Key (black)
cmyk(76.02%, 47.15%, 0%, 3.53%) Color science formats used in imaging, calibration, and perceptual adjustments.
Hue, Saturation, Intensity
hsi(218°, 59.31%, 56.86%) CIE 1931 XYZ tristimulus values
xyz(26.4148, 23.5458, 90.3236) Chromaticity coordinates x, y with luminance Y
xyY(0.1883, 0.1678, 23.5458) Perceptual CIE L*a*b* color space
Lab(55.63, 17.54, -64.42) Perceptual L*, chroma, hue cylindrical form
LCh(55.63, 66.77, 285.23°) CIE L*u*v* color space for emissive displays
Luv(55.63, -25.62, -103.13) Legacy and digital video formats for luminance/chrominance pipelines.
Luma/chroma for NTSC video encoding
yiq(0.4784, -0.3124, 0.0832) Analog video luminance-chrominance
yuv(0.4784, 0.2393, -0.2167) Digital video color space (BT.601)
ycbcr(0.4784, 0.2744, -0.1762) Latest perceptually uniform spaces ideal for UI gradients and accessible palettes.
Modern perceptual color space (Björn Ottosson)
oklab(0.6231, -0.0332, -0.1851) OKLab expressed in cylindrical coordinates
oklch(0.6231, 0.1881, 259.83°) Linearized spaces for HDR, compositing, and precise color blending.
Linearized RGB (0-1) suitable for compositing
lin-rgb(0.043735, 0.223228, 0.921582) Gamma-encoded RGB decimal values (0-1)
srgb(0.2314, 0.5098, 0.9647) Quickly understand which output formats include transparency support, advanced color science, or video encoding.
8-digit hexadecimal notation including alpha channel
RGB with alpha channel
HSL with alpha channel
This studio-quality converter helps you translate any color between every major format used across design, development, video, printing, and scientific workflows. The entire experience runs in your browser with zero data sent to servers.
Choose Auto detect to let the tool infer the format based on syntax clues. Each parser tolerates flexible
whitespace, optional unit suffixes (deg, rad, turn), percentage inputs, and mixed separators. When
auto detection succeeds, the detected format appears on the input card. If detection fails, switch to a specific format to
see targeted validation hints.
| Format | Example input | Accepted variations |
|---|---|---|
| HEX / HEXA | #3B82F6, #3B82F680 | Short notation (#3BF), uppercase, lowercase, prefixes without # |
| RGB / RGBA | rgb(59,130,246), rgba(59 130 246 / 0.5) | Commas or spaces, fractional channels, percentage channels, slash notation for alpha |
| HSL / HSLA | hsl(217deg 91% 60%) | Hue in degrees, turns, radians, percentages or decimals for saturation/lightness |
| CMYK | cmyk(76%, 47%, 0%, 4%) | Percentages or decimals, whitespace tolerant, optional labels (C:, M:, Y:, K:) |
| OKLCH | oklch(0.72 0.14 235) | Hue angles in degrees, radians, or turn, optional oklch() prefix |
| YCbCr | ycbcr(0.56, 0.18, 0.81) | Companded values 0–1 or 0–255, accepts broadcast-safe ranges |
#1E90FF → RGB(30, 144, 255)
→ CMYK(88%, 44%, 0%, 0%)
→ OKLCH(0.74, 0.12, 246°) Copy the RGB value for CSS, CMYK for print, and OKLCH for accessible tint adjustments.
hsla(262, 83%, 58%, 0.85)
→ HEXA #7C3AEDD9
→ Linear RGB 0.23 0.02 0.71 0.85 Use the linear RGB output for shader programming while keeping HEXA for UI mockups.
yuv(0.74, -0.14, 0.09)
→ RGB(209, 122, 107)
→ YCbCr(182, 111, 143) Ensure broadcast safety by checking that Y, Cb, and Cr stay within 16–235 / 16–240 where required.
lab(53, 80, 67)
→ LCH(53, 105, 40°)
→ OKLab(0.65, 0.24, 0.08) Compare perceptual differences by examining Lab delta values or OKLab vectors.
Each conversion card includes a copy button and labels whether the format supports alpha. The Export & Share panel provides:
HEX: #3B82F6, RGB: rgb(59,130,246).The preview panel calculates relative luminance, contrast on white and black, and recommends a foreground color for accessible text. Harmony swatches (complementary, analogous, triadic, monochrome) are generated using perceptual HSL rotations, giving you instant palettes for UI states, backgrounds, or brand accents.
Conversions run entirely in TypeScript with precise mathematical models for each color space. XYZ transforms use the D65 reference white, while perceptual spaces employ official CIE and OKLab matrices. All calculations round values to four decimal places by default for readable output without sacrificing accuracy. Exported JSON retains full precision so you can round downstream as needed.
Whether you are preparing assets for print, ensuring brand consistency across platforms, or experimenting with modern color science, this tool offers a comprehensive, professional-grade workflow in your browser.