One color in, every space out

Paste any format — the mixing room converts HEX, RGB, HSL and CMYK in one stroke, proofs WCAG contrast on black and white, and cuts five harmony palettes from the wheel.

Input any color …
try:
#4a90d9 hsl(211, 65%, 57%)

Contrast proof — WCAG 2.1

relative luminance · (L1 + 0.05) / (L2 + 0.05)
Perceived brightness
0%

Harmony palettes

click a chip to copy · ↺ to set as base
01 · The Spaces

Four spaces, one truth

Every format describes the same color for a different audience — the web, the screen pipeline, the human eye, the print shop. The mixing room speaks all four so nobody has to translate by hand.

HEX

#4a90d9

The web's native dialect. Three or six hexadecimal digits (or eight with alpha) map straight to RGB channels — compact, URL-safe, and what CSS expects.

RGB

rgb(74, 144, 217)

Additive light: three channels of red, green and blue, each 0–255, mixing the way screens emit. The natural intermediate — every other format converts through it.

HSL

hsl(211, 65%, 57%)

Human-readable color: hue as a 0–360° wheel position, saturation and lightness as percentages. "Same hue, slightly darker" finally maps to one number changing.

CMYK

cmyk(66%, 34%, 0%, 15%)

Subtractive ink for print: cyan, magenta, yellow and key (black) plates, each a coverage percentage. What a press mixes instead of light.

02 · Contrast

Accessibility, proven on the spot

A color is only as accessible as the text it carries. WCAG 2.1 defines four thresholds — the mixing room proofs your color against pure white and pure black and stamps every verdict, so you know your pairing before the design review does.

4.5:1
AA — normal text
the legal minimum for body copy
3:1
AA — large text
18pt+ or 14pt bold and above
7:1
AAA — normal text
enhanced contrast, low-vision safe
4.5:1
AAA — large text
enhanced contrast for large text
03 · The Harmonies

Five cuts of the wheel

Palettes are geometry: relationships between hue positions on the 360° wheel. The mixing room derives all five classic schemes from your color at once — click any chip to copy, or ↺ to make it the new base.

Complementary

H + 180°

Directly opposite on the wheel. Maximum hue contrast — the pairing behind every "accent color" decision.

Split-complementary

H ± 150°

The complement's two neighbors. Same punch as complementary, but softened — easier to balance in a layout.

Triadic

H ± 120°

Three hues evenly spaced around the wheel. Vibrant yet balanced — the classic playground of poster design.

Analogous

H ± 30°

Next-door neighbors on the wheel. Low tension, high cohesion — the quiet scheme of nature and editorial design.

Monochromatic

L ± 12 / 24

One hue, five lightness steps — a paint-store strip. The safest way to build depth without new hues.

Built for the moment specifications arrive

Designers and developers frequently receive brand colors in a single format — a hex code in a PDF, an RGB value pasted into Slack, a CMYK breakdown from a print vendor. colrshift takes that one input and outputs every representation you need without manual conversion math. Paste a hex, click one of the preset buttons like #4a90d9 or dodgerblue, or type a raw value in any supported space. The tool immediately returns HEX, RGB, HSL, and CMYK side by side, plus a live WCAG 2.1 contrast check so you can verify text legibility before leaving the page.

From one value to four formats

  1. Paste a color value or click a preset button like #0f8f7e to populate all fields instantly.
  2. Review the converted outputs across HEX, RGB, HSL, and CMYK panels displayed below the input.
  3. Click Random to generate a new color, or Clear to reset every field and start over.
  4. Check the WCAG contrast section to confirm whether your color meets accessibility thresholds for text.
  5. Copy any converted value directly from its panel for use in your stylesheet or design file.
04 · FAQ

Frequently asked

The questions designers, developers and auditors bring to the mixing counter.

How do I convert HEX to RGB?

Paste the hex code — with or without the # — into the input box, e.g. #4a90d9. The format is detected automatically and the RGB result appears instantly: rgb(74, 144, 217). Each channel is simply the hexadecimal pair converted to decimal: 4a = 74, 90 = 144, d9 = 217. Click any value card to copy it.

How do I convert RGB to HSL?

Enter the color as rgb(74, 144, 217), rgba(...), or a bare triple like 74 144 217. HSL is derived from the max and min channel: lightness is their midpoint, saturation is their difference scaled by lightness, and hue is the 0–360° position of the dominant channel on the color wheel — here hsl(211, 65%, 57%).

What is CMYK for, versus RGB?

RGB is additive — red, green and blue light mix on screens. CMYK is subtractive — cyan, magenta, yellow and black ink absorb light on paper. Designers hand HEX to developers for the web but need CMYK percentages for print shops. ColrShift converts with the standard ink model: k = 1 − max(r,g,b), then c, m, y are the remaining separations.

What contrast ratio do I need for WCAG AA and AAA?

WCAG 2.1 requires 4.5:1 for AA normal text, 3:1 for AA large text (18pt+ or 14pt bold), 7:1 for AAA normal text and 4.5:1 for AAA large text. ColrShift checks your color against both black and white and shows pass/fail badges for all four thresholds in one glance.

How is the WCAG contrast ratio calculated?

Each color's relative luminance is computed by linearizing the sRGB channels and weighting them 0.2126 R + 0.7152 G + 0.0722 B. The ratio is (L1 + 0.05) / (L2 + 0.05) with L1 the lighter color, ranging from 1:1 to 21:1. The tool also shows perceived brightness using the ITU-R BT.601 luma weights 0.299 / 0.587 / 0.114.

What are complementary, split-complementary and triadic colors?

Hue-wheel relationships. Complementary sits opposite at H+180° for maximum contrast. Split-complementary takes the two neighbors of that opposite point at H±150° — similar punch, less tension. Triadic places three colors evenly at H±120°. Analogous neighbors (H±30°) and a monochromatic lightness strip round out the five schemes.

Can I use CSS color names like dodgerblue?

Yes — all 148 named CSS colors are recognized, from aliceblue to yellowgreen, including rebeccapurple, resolved through the same named-color table your browser uses. Type a name and every other format updates instantly; conversely, a hex value reveals its matching CSS name if one exists.

Is my input uploaded to a server?

No. All parsing, conversion and palette generation runs entirely in your browser. Nothing you type is transmitted, logged or stored — safe for unreleased brand palettes and NDA-covered work. Colors are also encoded in the page URL, so bookmarking or sharing a color needs no server at all.

Every colour, already converted

Each page holds one colour in HEX, RGB, HSL and CMYK side by side, with the WCAG contrast against black and white so you know where it can be used as text.

Latest Articles

Using HSL Values Directly in CSS Variables: Syntax, Theming, and Browser Support Explained
Here's the technique that changes how you build themes: instead of storing a color as a single hex value in a CSS variable, split it into its HSL components.
The UI Designer's Guide to Calculating and Verifying Exact HEX to RGB Conversions
The button in your Figma file reads #2563EB . The button in your staging environment reads rgb(37, 99, 235) .
Beyond Light Mode: Validating Dual HEX and RGBA Contrast Simultaneously for Dark Mode Palettes
82.7% of users now enable dark mode on at least one device, according to a 2022 Android Authority survey of 2,500 respondents.
Why Pure White Text on Pure Black Backgrounds Fails Accessibility Tests and Causes Eye Strain
If you've ever run a dark mode design through a contrast checker and watched #FFFFFF on #000000 sail past with a 21:1 ratio, you'd be forgiven for thinking you'd nailed accessibility.
Decoding WCAG 2.1 Contrast Tiers: Exact Ratio Requirements for AA and AAA Design Compliance
When WebAIM analyzed the homepages of the top one million websites in their 2024 accessibility audit, they discovered a staggering statistic: 96.3% had detectable WCAG 2.1 failures.
Bridging the Gap: Exporting Validated WCAG CSS Variables Directly from an In-Browser Converter
Here's the tip that changes your workflow: pick a single anchor color for your primary text (something like #1A1A2E), run it through an in-browser WCAG checker against your background, and build your…
How to Convert HEX to HSL and Generate WCAG 2.1 Compliant Color Palettes In-browser
Here's the scene I've watched play out a hundred times. A developer picks a brand color—say #4A90D9 —converts it to HSL, gets hsl(211, 65%, 57%) , and then generates a "palette" by creating steps at 10%, 20%, 30%...
4 Hex RGB Contrast Mistakes Breaking Dark Mode CSS
Stop guessing dark mode colors! Compare manual math vs automated tools to convert hex to rgb and calculate exact contrast ratio. Fix these pitfalls right now!
Hex to RGB Picker: Eyeballing vs Testing UI Contrast
Stop guessing UI colors. Use our in-browser color picker to convert hex to rgb and test accessibility contrast. We expose pitfalls and fix them. Read the guide!
CMYK to RGB Converter: Guess vs Verify CSS Display
Frontend developers: ensure accurate CSS color display. Use our CMYK to RGB converter to verify print colors against screen outputs step-by-step. Convert values now.
RGB to HSL Conversion: Contrast-Checked Palettes 2026
Generate accessible color harmony palettes easily. See how RGB to HSL conversion simplifies contrast checking so your UI passes WCAG. Read the 2026 guide now!
How to Convert Hex to Rgb and Automatically Check Wcag 2.1 Contrast Ratio in Browser
Most developers and designers do this: they pick a brand color, paste the hex code into an online contrast checker, glance at the ratio, and move on. If the number looks high enough, they ship it.
HEX vs RGB: WCAG Contrast Checker Verifies Accessible CSS
Stop guessing color accessibility. Use an in-browser WCAG 2.1 contrast checker to validate HEX to RGB conversions for accessible frontend CSS. Start testing now!
Why Most HEX to HSL CSS Palettes Fail WCAG 2.1 Contrast
Building WCAG 2.1 accessible CSS color palettes? Learn how an in-browser HEX to HSL converter resolved our contrast failures. Read the evidence-led case study.
How to Use an In-browser Color Converter to Generate Accessible CSS Palettes for Wcag 2.1
Most developers pick a brand color, drop it into a CSS variable, build out the interface, and only discover the contrast failure during a late-stage accessibility audit.
Converting Pantone to Hex and RGB for Frontend Design System Tokens
There is no exact Pantone to hex conversion, only a nearest sRGB match. Building a token ramp from one brand color, and measuring contrast before the tokens ship.
Do Frontend Developers Need Cmyk Conversion for Web CSS Colors
Last spring, a junior developer on my team handed me a pull request that made me pause. She had received a brand guideline PDF from a print-first design agency, and inside it, every color was listed as CMYK.
How to Calculate Exact Wcag 2.1 Contrast Ratio Between Two Hex Codes
A button labeled "Sign Up" in #777777 gray on a #FFFFFF background. One designer calls it compliant. The automated tool returns 4.48:1.
Generating UI Design Palettes with Consistent Hsl Lightness Scales
I've been building design systems for SaaS dashboards for the better part of a decade, and I can tell you exactly why this happens.
2 Methods Complementary Colors Pass WCAG 2.1 AA Contrast
Compare manual vs automated tools finding complementary colors passing WCAG 2.1 AA. Apply our evidence-led checklist ensuring contrast. Read the guide now.
Hex to HSL Theming Pitfalls: Fix Dynamic CSS Variables
Converting hex to hsl for dynamic css custom properties and theming? Stop making common mistakes. Learn direct fixes for broken variables. Read the guide now!
Palette Generator: Correcting Accessible UI Color Flaws
Stop guessing contrast. Use this in-browser palette generator to build accessible UI color harmonies. Fix common mistakes and craft clear interfaces today.
Converting Rgb to Cmyk for Figma UI Mockups Without Losing Color Vibrancy
Picture this: You've just spent three weeks perfecting a Figma UI mockup for a client's new fintech app. The electric blue CTAs pop. The coral accent buttons practically vibrate on screen.
Checking Wcag 2.1 Contrast Ratio for Text Overlaying Gradient Backgrounds
That number comes from a 2023 audit of 200 marketing landing pages. Designers check contrast at the darkest and lightest ends of a gradient, see passing ratios, and ship.
How to Convert Hex to Rgba for Tailwind CSS Opacity Modifiers
The designer handed you a button. Nice gradient, clean type, and a background color listed as #FF5733 at 50% opacity.
How to Convert Brand HEX Codes to WCAG 2.1 Compliant HSL CSS Variables Using an In-browser Contrast Checker
96.3% of the top one million homepages fail WebAIM's accessibility audit, and the most common failure isn't a missing ARIA label—it's insufficient color contrast.
Free Color Harmony Validator: Lock Brand Identity Fast
Stop mismatched palettes. Grab this free color harmony validator I use daily to guarantee brand identity consistency. Test your exact brand colors right now!
Real-Time Color Contrast Analyzer Fixes Ghost UI
Stop designing invisible buttons. This real-time color contrast analyzer exposes bad UI color mistakes and fixes them instantly. Make elements pop. Try it now!
Stop CMYK to RGB Conversion Shifts: 5 Concrete Fixes
Stop muddy colors ruining digital designs. Expose common CMYK to RGB conversion mistakes and fix them with a concrete, zero-shift checklist. Start fixing now!
In-browser Color Picker Tool for Frontend Developers with Hex Rgb Cmyk Hsl Support
That's the question that haunted me last Tuesday at 11:47 PM, staring at a button that looked like it belonged on a different website than the one my designer had mocked up.

View All Articles →