One colour, every notation
See the same colour as HEX, RGB, HSL, HWB and OKLCH without pasting it into five different sites. Each value is calculated from the one you typed.
Convert a colour between HEX, RGB, HSL, HWB and OKLCH, check WCAG contrast, build palettes, gradients, shadows, radius, flex and grid CSS, and export the result to Tailwind, SwiftUI, UIKit, Android, Compose or Flutter.
HEX with three, four, six or eight digits. An eight-digit value carries alpha.
No colour yet. The canvas and every preview use the colour you enter.
The alpha slider writes an eight-digit HEX value. Exports use it as the first byte where the platform requires AARRGGBB.
Both fields accept a HEX value with or without the leading hash. The nearest passing suggestion keeps the text hue and changes only its lightness.
The result shows the base colour and four simulated views side by side. Simulations are approximate and are not a substitute for testing with real users.
Steps are odd so the base colour always sits exactly in the middle. Tints and shades are mixed in OKLab.
The start colour is the base colour. Radial gradients are centred in the preview box.
Used as the CSS variable, Swift/UIKit property or Android resource name.
Ready
See the same colour as HEX, RGB, HSL, HWB and OKLCH without pasting it into five different sites. Each value is calculated from the one you typed.
The checker reports the exact WCAG ratio, the AA and AAA verdicts for normal and large text, and the closest passing colour that keeps your hue.
Copy custom properties, a Tailwind theme block, SwiftUI and UIKit extensions, Android XML, Compose or Flutter constants. Alpha is written the way each platform expects it.
A design often starts with one colour chosen by eye and then spreads into a dozen values: a hover state, a disabled state, a border, a dark-theme variant. Doing that by hand produces near-duplicates and gaps, and copying values between a picker, a contrast checker and a platform export page invites mistakes.
Use this studio when you need a defensible value rather than an approximate one: a text colour that passes AA on a customer's background, a tint scale for a component library, or an Android resource with the alpha byte in the right place. It is a working tool, not a design inspiration gallery.
Starting from #3b82f6, the picker reports RGB 59, 130, 246, HSL 217° 91.2% 59.8%, HWB 217° 23.1% 3.5% and OKLCH 62.31% 0.188 259.8. Against white the contrast ratio is 3.68:1, so it passes AA for large text but not for normal text.
The nearest passing suggestion for normal text is #196df4, which reaches 4.63:1 against white with the same hue. A nine-step OKLab palette from the same base gives these entries, with the base exactly in the middle:
| Step | HEX | OKLCH lightness |
|---|---|---|
| tint-94 | #f3f8ff | 97.74% |
| tint-71 | #c6dcff | 88.95% |
| tint-47 | #98bffe | 79.99% |
| tint-24 | #6ca2fb | 71.35% |
| base | #3b82f6 | 62.31% |
| shade-24 | #2658aa | 47.29% |
| shade-47 | #133368 | 33.03% |
| shade-71 | #041129 | 18.19% |
| shade-94 | #000001 | 3.04% |
Exporting that base to Android produces #FF3B82F6. With 50% alpha the same resource becomes #803B82F6: Android reads the first byte as alpha, not as red. The Flutter and Compose forms use the identical order behind a 0x prefix.
HEX is compact and exact, but it hides how light a colour is. HSL is easier to reason about, yet equal lightness steps do not look equally spaced to the eye. OKLCH is designed for perceptual uniformity: two colours with the same OKLCH lightness look about as bright as each other, which is why the palette here is mixed in OKLab rather than by averaging red, green and blue.
Contrast is separate from taste. WCAG calculates relative luminance from linearised sRGB channels, then compares the lighter and darker colours. Black on white is exactly 21:1. The same ratio is required for normal text whether the background is a hero image or a table row, so always check the colour pair that actually ships.
Alpha ordering is a frequent source of wrong colours. CSS writes an eight-digit hex as RRGGBBAA, while Android, Compose and Flutter write AARRGGBB. The export modes handle that difference; when you copy a value by hand, check which order the destination expects.
| Item | Behaviour |
|---|---|
| Accepted input | Three, four, six or eight HEX digits, with or without a leading hash. Case does not matter. |
| Output notations | HEX, RGB, HSL, HWB and OKLCH, plus ready-to-paste CSS for each. |
| Palette size | Three to eleven odd steps. Even requests are rounded up so a base entry exists. |
| Export targets | CSS variables, Tailwind config, SwiftUI, UIKit, Android XML, Jetpack Compose and Flutter. |
| Input cap | 5 MB per run. A colour value is tiny, so the cap only stops a pasted blob from being processed. |
| “Not a HEX colour” | The value has the wrong length or a character outside 0–9 and A–F. Shorten it or remove the extra characters. |
| Contrast says “fail” | The pair is below the threshold for that text size. Use the suggestion, or make the background lighter or darker. |
| Not offered | No named-colour lookup, no image colour extraction and no eyedropper where the browser lacks the EyeDropper API. |
Every conversion, palette and export runs in a Web Worker in this browser tab. The page sends no request containing your colour, loads no third-party script and needs no account. Closing the tab discards the values, and nothing is written to storage.
The native colour picker is provided by the browser. The EyeDropper button appears only in Chromium-based browsers that expose that API, and it reads a pixel only after you click it.
No. WCAG AA requires 4.5:1 for normal text and 3:1 for large text, which is 18pt regular or 14pt bold. Non-text interface parts need 3:1 against their neighbours.
OKLCH has no single display rounding. This tool reports lightness as a percentage and chroma to four decimals; another tool may round differently or use a different white point.
Yes. The CSS variables and Android exports include a full nine-step scale. Tailwind gets the standard 50–900 keys, and the single-value exports use the base colour.
No. It tests the two colours you enter. Text over an image, gradients or translucent layers needs a check of the worst pixel behind it, which this tool cannot see.
They are approximations built from published dichromacy matrices. Real vision varies, and the screen also matters, so treat the preview as a prompt to add a second cue such as a label or pattern.
For formatting the CSS or Tailwind file you paste these values into, use Code Formatter. For structured data, use JSON & Data Studio; for text work, Text Studio.
Sources: the W3C CSS Color Module Level 4 for HSL, HWB and OKLCH syntax; WCAG 2.1 success criteria 1.4.3 and 1.4.6 and the relative-luminance definition; Björn Ottosson's published OKLab matrices; Android Color resources for the AARRGGBB order; Flutter's Color class documentation; Apple's Color and UIColor references; and the Tailwind CSS theme documentation. Behaviour checked in current Chromium on 28 November 2026.