HEX naar HSL: #9333EA

Ook bekend als: Tailwind v3 purple-600

Resultaat

#9333EA → hsl(271 81% 56%)

Waarden staan op volle precisie, dus terugrekenen geeft exact #9333ea. De afgeronde vorm plak je gewoonlijk in CSS.

Stap-voor-stap berekening

Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.

  1. 1. RGB ÷ 255

    R = 0.5765
    G = 0.2000
    B = 0.9176
  2. 2. max, min, Δ

    max = 0.9176
    min = 0.2000
    Δ = max − min = 0.7176
  3. 3. L

    L = (max + min) / 2 = 0.5588 = 55.88%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.8133 = 81.33%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.5765 − 0.2000) / 0.7176 + 4) = 271.48°
  6. 6. HSL

    hsl(271.48 81.33% 55.88%)

Alle formaten

HEX
#9333ea
RGB
rgb(147 51 234)
RGB (legacy)
rgb(147, 51, 234)
HSL
hsl(271.48 81.33% 55.88%) → hsl(271 81% 56%)
HWB
hwb(271 20% 8%)
OKLCH
oklch(0.558 0.252 302.3) · oklch(55.8% 0.252 302.3)
OKLab
oklab(0.558 0.135 -0.213)
Lab (D50)
lab(44.02 63.35 -75.85)
LCH (D50)
lch(44.02 98.82 309.87)
Display P3
color(display-p3 0.5330 0.2257 0.8842)
Linear sRGB
color(srgb-linear 0.2918 0.0331 0.8228)

Gamut: sRGB en Display P3

#9333EA is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.294 en Display P3 van 0.307; deze kleur gebruikt 86% van de beschikbare sRGB-chroma.

CSS-snippets

.element {
  color: #9333ea;
  color: rgb(147 51 234);
  color: hsl(271 81% 56%);
  color: oklch(0.558 0.252 302.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.558 0.252 302.3);
}
/* arbitrary values */
class="text-[#9333ea] bg-[oklch(0.558_0.252_302.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5330 0.2257 0.8842); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #9333ea calc(l - 0.1) c h); }

Kleuren in de buurt

Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).

Lichter en donkerder, dezelfde tint en chroma

  • #A54BFF · oklch(0.618 0.252 302.3) · ΔL +0.06
  • #8113D5 · oklch(0.498 0.252 302.3) · ΔL −0.06

Openen in de studio

Andere converters voor deze kleur

Alle converters →