HSL to HEX: #4B004F

Also known as: Tailwind fuchsia-950

Result

hsl(296.96 100.00% 15.49%) → #4B004F

Values are shown at full precision, so converting back gives exactly #4b004f. 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 = 296.96°, S = 100.00%, L = 15.49%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.29410, 0.00000, 0.30980)
    R = round((0.29410 + 0.00000) × 255) = 75
    G = round((0.00000 + 0.00000) × 255) = 0
    B = round((0.30980 + 0.00000) × 255) = 79
  6. 6. RGB → HEX

    #4B004F

All formats

HEX
#4b004f
RGB
rgb(75 0 79)
RGB (legacy)
rgb(75, 0, 79)
HSL
hsl(296.96 100.00% 15.49%) → hsl(297 100% 15%)
HWB
hwb(297 0% 69%)
OKLCH
oklch(0.293 0.136 325.8) · oklch(29.3% 0.136 325.8)
OKLab
oklab(0.293 0.113 -0.077)
Lab (D50)
lab(15.69 39.13 -27.33)
LCH (D50)
lch(15.69 47.73 325.07)
Display P3
color(display-p3 0.2668 0.0302 0.2983)
Linear sRGB
color(srgb-linear 0.0704 0.0000 0.0782)

Gamut: sRGB and Display P3

#4B004F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.136 and Display P3 reaches 0.148; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #4b004f;
  color: rgb(75 0 79);
  color: hsl(297 100% 15%);
  color: oklch(0.293 0.136 325.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.293 0.136 325.8);
}
/* arbitrary values */
class="text-[#4b004f] bg-[oklch(0.293_0.136_325.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2668 0.0302 0.2983); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4b004f 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

  • #5D1760 · oklch(0.353 0.136 325.8) · ΔL +0.06
  • #3A003E · oklch(0.233 0.136 325.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?