HEX to RGB: #2E8B57

Also known as: CSS seagreen

Result

#2E8B57 → rgb(46 139 87)

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. HEX → pairs

    #2E8B57 → 2E | 8B | 57
  2. 2. base 16 → base 10

    R = 2E₁₆ = 2×16 + 14 = 46
    G = 8B₁₆ = 8×16 + 11 = 139
    B = 57₁₆ = 5×16 + 7 = 87
  3. 3. RGB

    rgb(46 139 87)

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?