HEX to HSL: #365314

Also known as: Tailwind v3 lime-900

Result

#365314 → hsl(88 61% 20%)

Values are shown at full precision, so converting back gives exactly #365314. 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.2118
    G = 0.3255
    B = 0.0784
  2. 2. max, min, Δ

    max = 0.3255
    min = 0.0784
    Δ = max − min = 0.2471
  3. 3. L

    L = (max + min) / 2 = 0.2020 = 20.20%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.6117 = 61.17%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.0784 − 0.2118) / 0.2471 + 2) = 87.62°
  6. 6. HSL

    hsl(87.62 61.17% 20.20%)

All formats

HEX
#365314
RGB
rgb(54 83 20)
RGB (legacy)
rgb(54, 83, 20)
HSL
hsl(87.62 61.17% 20.20%) → hsl(88 61% 20%)
HWB
hwb(88 8% 67%)
OKLCH
oklch(0.405 0.096 131.1) · oklch(40.5% 0.096 131.1)
OKLab
oklab(0.405 -0.063 0.072)
Lab (D50)
lab(31.95 -19.75 31.40)
LCH (D50)
lch(31.95 37.09 122.16)
Display P3
color(display-p3 0.2367 0.3225 0.1192)
Linear sRGB
color(srgb-linear 0.0369 0.0865 0.0070)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #365314;
  color: rgb(54 83 20);
  color: hsl(88 61% 20%);
  color: oklch(0.405 0.096 131.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.405 0.096 131.1);
}
/* arbitrary values */
class="text-[#365314] bg-[oklch(0.405_0.096_131.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2367 0.3225 0.1192); }
}

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

  • #466427 · oklch(0.465 0.096 131.1) · ΔL +0.06
  • #274200 · oklch(0.345 0.096 131.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?