#2E5218#2E5218

#2E5218 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.096 H 135.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2E5218
RGBrgb(46, 82, 24)
HSLhsl(97, 55%, 21%)
HSVhsv(97, 71%, 32%)
CMYKcmyk(43.9%, 0%, 70.7%, 67.8%)
CIE-LABlab(31.07, -24.60, 29.04)
CIE-LCHlch(31.07, 38.06, 130.27°)
OKLaboklab(39.75% -0.0683 0.0668)
OKLCHoklch(39.75% 0.096 135.6)
XYZxyz(4.3088, 6.6811, 1.9265)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5218 #3C1852
analogous
#4B5218 #2E5218 #18521F
triadic
#2E5218 #182E52 #52182E
tetradic
#2E5218 #184B52 #3C1852 #521F18
square
#2E5218 #184B52 #3C1852 #521F18
split-complementary
#2E5218 #1F1852 #52184B
monochromatic
#0D1807 #13230A #2E5218 #498126 #63B134

Accessibility & contrast

On white

8.99
#2E5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2E5218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5218
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5218#FFFFFF#000000##FFFFFF
##2E52181.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#50481D
Tritanopia (blue-blind)
#2D4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e5218;
/* rgb */ color: rgb(46, 82, 24);
/* oklch */ color: oklch(39.7% 0.096 135.6);
Tailwind
colors: {
  custom: {
    50: '#6a8358',
    500: '#2e5218',
    950: '#000000',
  },
}
SCSS
$custom: #2e5218;
$custom-light: #6a8358;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5218",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 97.241,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39748,
    "c": 0.09559,
    "h": 135.6
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#2E5218
secondary
#6C3D89
accent
#4ADEA6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5218

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2E5218 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva