HEX to HSL: #059669

Also known as: Tailwind v3 emerald-600

Result

#059669 → hsl(161 94% 30%)

Values are shown at full precision, so converting back gives exactly #059669. 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.0196
    G = 0.5882
    B = 0.4118
  2. 2. max, min, Δ

    max = 0.5882
    min = 0.0196
    Δ = max − min = 0.5686
  3. 3. L

    L = (max + min) / 2 = 0.3039 = 30.39%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9355 = 93.55%
  5. 5. H

    max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.4118 − 0.0196) / 0.5686 + 2) = 161.38°
  6. 6. HSL

    hsl(161.38 93.55% 30.39%)

All formats

HEX
#059669
RGB
rgb(5 150 105)
RGB (legacy)
rgb(5, 150, 105)
HSL
hsl(161.38 93.55% 30.39%) → hsl(161 94% 30%)
HWB
hwb(161 2% 41%)
OKLCH
oklch(0.596 0.127 163.2) · oklch(59.6% 0.127 163.2)
OKLab
oklab(0.596 -0.122 0.037)
Lab (D50)
lab(54.82 -43.50 13.94)
LCH (D50)
lch(54.82 45.68 162.23)
Display P3
color(display-p3 0.2610 0.5793 0.4246)
Linear sRGB
color(srgb-linear 0.0015 0.3050 0.1413)

Gamut: sRGB and Display P3

#059669 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.128 and Display P3 reaches 0.176; this color uses 99% of the sRGB chroma available.

CSS snippets

.element {
  color: #059669;
  color: rgb(5 150 105);
  color: hsl(161 94% 30%);
  color: oklch(0.596 0.127 163.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.596 0.127 163.2);
}
/* arbitrary values */
class="text-[#059669] bg-[oklch(0.596_0.127_163.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2610 0.5793 0.4246); }
}

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

  • #2DA97B · oklch(0.656 0.127 163.2) · ΔL +0.06
  • #008458 · oklch(0.536 0.127 163.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?