HSL to HEX: #2E8B57

Also known as: CSS seagreen

Result

hsl(146.45 50.27% 36.27%) → #2E8B57

Values are shown at full precision, so converting back gives exactly #2e8b57. 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 = 146.45°, S = 50.27%, L = 36.27%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.36466, 0.16075)
    R = round((0.00000 + 0.18037) × 255) = 46
    G = round((0.36466 + 0.18037) × 255) = 139
    B = round((0.16075 + 0.18037) × 255) = 87
  6. 6. RGB → HEX

    #2E8B57

All formats

HEX
#2e8b57
RGB
rgb(46 139 87)
RGB (legacy)
rgb(46, 139, 87)
HSL
hsl(146.45 50.27% 36.27%) → hsl(146 50% 36%)
HWB
hwb(146 18% 45%)
OKLCH
oklch(0.569 0.119 154.9) · oklch(56.9% 0.119 154.9)
OKLab
oklab(0.569 -0.108 0.050)
Lab (D50)
lab(51.49 -37.86 19.58)
LCH (D50)
lch(51.49 42.63 152.66)
Display P3
color(display-p3 0.2898 0.5376 0.3590)
Linear sRGB
color(srgb-linear 0.0273 0.2582 0.0953)

Gamut: sRGB and Display P3

#2E8B57 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.141 and Display P3 reaches 0.195; this color uses 84% of the sRGB chroma available.

CSS snippets

.element {
  color: #2e8b57;
  color: rgb(46 139 87);
  color: hsl(146 50% 36%);
  color: oklch(0.569 0.119 154.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.569 0.119 154.9);
}
/* arbitrary values */
class="text-[#2e8b57] bg-[oklch(0.569_0.119_154.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2898 0.5376 0.3590); }
}

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

  • #439E68 · oklch(0.629 0.119 154.9) · ΔL +0.06
  • #147946 · oklch(0.509 0.119 154.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?