#2E5217#2E5217

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

Color values

HEX#2E5217
RGBrgb(46, 82, 23)
HSLhsl(97, 56%, 21%)
HSVhsv(97, 72%, 32%)
CMYKcmyk(43.9%, 0%, 72%, 67.8%)
CIE-LABlab(31.06, -24.70, 29.51)
CIE-LCHlch(31.06, 38.49, 129.93°)
OKLaboklab(39.74% -0.0687 0.0677)
OKLCHoklch(39.74% 0.096 135.4)
XYZxyz(4.2986, 6.6771, 1.8728)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5217 #3B1752
analogous
#4B5217 #2E5217 #17521D
triadic
#2E5217 #172E52 #52172E
tetradic
#2E5217 #174B52 #3B1752 #521D17
square
#2E5217 #174B52 #3B1752 #521D17
split-complementary
#2E5217 #1D1752 #52174B
monochromatic
#0D1807 #13220A #2E5217 #498224 #64B232

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E5217#FFFFFF#000000##FFFFFF
##2E52171.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)
#554B0F
Deuteranopia (green-blind)
#50481C
Tritanopia (blue-blind)
#2D4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e5217;
/* rgb */ color: rgb(46, 82, 23);
/* oklch */ color: oklch(39.7% 0.096 135.4);
Tailwind
colors: {
  custom: {
    50: '#6a8357',
    500: '#2e5217',
    950: '#000000',
  },
}
SCSS
$custom: #2e5217;
$custom-light: #6a8357;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5217",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 96.61,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39737,
    "c": 0.09645,
    "h": 135.4
  },
  "luminance": 0.06677
}

Semantic roles & 50–950 ramp

primary
#2E5217
secondary
#6B3C89
accent
#48DFA5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5217

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

Preview Lab → · Contrast checker → · Palette generator →

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