HSL to HEX: #C6005C

Also known as: Tailwind pink-700

Result

hsl(332.12 100.00% 38.82%) → #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. input

    H = 332.12°, S = 100.00%, L = 38.82%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.77640
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.36077   (H / 60° = 5.5353, sector 5)
  4. 4. m

    m = L − C / 2 = 0.00000
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.77640, 0.00000, 0.36077)
    R = round((0.77640 + 0.00000) × 255) = 198
    G = round((0.00000 + 0.00000) × 255) = 0
    B = round((0.36077 + 0.00000) × 255) = 92
  6. 6. RGB → HEX

    #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?