HEX to OKLCH: #C6005C
Also known as: Tailwind pink-700
Result
#C6005C → oklch(0.532 0.214 4.8)
Values are shown at full precision, so converting back gives exactly #c6005c. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. sRGB → linear
R: 198/255 = 0.77647 → 0.564712 (((x + 0.055) / 1.055)^2.4) G: 0/255 = 0.00000 → 0.000000 (÷ 12.92) B: 92/255 = 0.36078 → 0.107023 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.238292 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.131158 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.117288
3. cube root
l′ = ∛0.238292 = 0.619969 m′ = ∛0.131158 = 0.508080 s′ = ∛0.117288 = 0.489498
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.53170 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.21294 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.01793
5. Oklab → OKLCH
C = √(a² + b²) = 0.21370 H = atan2(b, a) = 4.812° L = 0.53170
6. OKLCH
oklch(0.53170 0.21370 4.812) rounded: oklch(0.532 0.214 4.8)
All formats
- HEX
- #c6005c
- RGB
- rgb(198 0 92)
- RGB (legacy)
- rgb(198, 0, 92)
- HSL
- hsl(332.12 100.00% 38.82%) → hsl(332 100% 39%)
- HWB
- hwb(332 0% 22%)
- OKLCH
- oklch(0.532 0.214 4.8) · oklch(53.2% 0.214 4.8)
- OKLab
- oklab(0.532 0.213 0.018)
- Lab (D50)
- lab(43.08 69.00 8.37)
- LCH (D50)
- lch(43.08 69.50 6.92)
- Display P3
- color(display-p3 0.7114 0.1462 0.3609)
- Linear sRGB
- color(srgb-linear 0.5647 0.0000 0.1070)
Gamut: sRGB and Display P3
#C6005C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.214 and Display P3 reaches 0.241; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #c6005c;
color: rgb(198 0 92);
color: hsl(332 100% 39%);
color: oklch(0.532 0.214 4.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.532 0.214 4.8);
}
/* arbitrary values */
class="text-[#c6005c] bg-[oklch(0.532_0.214_4.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7114 0.1462 0.3609); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #c6005c calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 pink-700#BE185D
- v3 rose-700#BE123C
- rose-700#C70036
- mediumvioletred#C71585
- v3 pink-600#DB2777
- crimson#DC143C
- pink-600#E60076
- v3 rose-600#E11D48
Lighter and darker, same hue and chroma
- #DC2A6D · oklch(0.592 0.214 4.8) · ΔL +0.06
- #B0004B · oklch(0.472 0.214 4.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?