RGB to HEX: #C6005C

Also known as: Tailwind pink-700

Result

rgb(198 0 92) → #C6005C

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. 1. base 10 → base 16

    R = 198 = 12×16 + 6 → C6
    G = 0 = 0×16 + 0 → 00
    B = 92 = 5×16 + 12 → 5C
  2. 2. pairs → HEX

    C6 00 5C → #C6005C

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).

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

All converters →

Guides: What is OKLCH?