HEX to RGB: #C6005C
Also known as: Tailwind pink-700
Result
#C6005C → rgb(198 0 92)
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. HEX → pairs
#C6005C → C6 | 00 | 5C
2. base 16 → base 10
R = C6₁₆ = 12×16 + 6 = 198 G = 00₁₆ = 0×16 + 0 = 0 B = 5C₁₆ = 5×16 + 12 = 92
3. RGB
rgb(198 0 92)
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?