HEX to HSL: #701A75

Also known as: Tailwind v3 fuchsia-900

Result

#701A75 → hsl(297 64% 28%)

Values are shown at full precision, so converting back gives exactly #701a75. 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. RGB ÷ 255

    R = 0.4392
    G = 0.1020
    B = 0.4588
  2. 2. max, min, Δ

    max = 0.4588
    min = 0.1020
    Δ = max − min = 0.3569
  3. 3. L

    L = (max + min) / 2 = 0.2804 = 28.04%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.6364 = 63.64%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.4392 − 0.1020) / 0.3569 + 4) = 296.70°
  6. 6. HSL

    hsl(296.70 63.64% 28.04%)

All formats

HEX
#701a75
RGB
rgb(112 26 117)
RGB (legacy)
rgb(112, 26, 117)
HSL
hsl(296.70 63.64% 28.04%) → hsl(297 64% 28%)
HWB
hwb(297 10% 54%)
OKLCH
oklch(0.401 0.160 325.6) · oklch(40.1% 0.160 325.6)
OKLab
oklab(0.401 0.132 -0.090)
Lab (D50)
lab(27.91 45.71 -32.39)
LCH (D50)
lch(27.91 56.02 324.67)
Display P3
color(display-p3 0.4032 0.1302 0.4436)
Linear sRGB
color(srgb-linear 0.1620 0.0103 0.1779)

Gamut: sRGB and Display P3

#701A75 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.187 and Display P3 reaches 0.203; this color uses 86% of the sRGB chroma available.

CSS snippets

.element {
  color: #701a75;
  color: rgb(112 26 117);
  color: hsl(297 64% 28%);
  color: oklch(0.401 0.160 325.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.401 0.160 325.6);
}
/* arbitrary values */
class="text-[#701a75] bg-[oklch(0.401_0.160_325.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4032 0.1302 0.4436); }
}

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

  • #832E87 · oklch(0.461 0.160 325.6) · ΔL +0.06
  • #5E0063 · oklch(0.341 0.160 325.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?