#2E5917#2E5917

#2E5917 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.8% C 0.107 H 136.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2E5917
RGBrgb(46, 89, 23)
HSLhsl(99, 59%, 22%)
HSVhsv(99, 74%, 35%)
CMYKcmyk(48.3%, 0%, 74.2%, 65.1%)
CIE-LABlab(33.54, -28.02, 32.13)
CIE-LCHlch(33.54, 42.63, 131.08°)
OKLaboklab(41.77% -0.0777 0.0732)
OKLCHoklch(41.77% 0.107 136.7)
XYZxyz(4.8536, 7.7872, 2.0578)
Luminance0.0779 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5917 #421759
analogous
#4F5917 #2E5917 #175921
triadic
#2E5917 #172E59 #59172E
tetradic
#2E5917 #174F59 #421759 #592117
square
#2E5917 #174F59 #421759 #592117
split-complementary
#2E5917 #211759 #59174F
monochromatic
#0D1806 #15280A #2E5917 #478A24 #60BA30

Accessibility & contrast

On white

8.21
#2E5917 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2E5917 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5917
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5917#FFFFFF#000000##FFFFFF
##2E59171.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510D
Deuteranopia (green-blind)
#564E1D
Tritanopia (blue-blind)
#2C564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e5917;
/* rgb */ color: rgb(46, 89, 23);
/* oklch */ color: oklch(41.8% 0.107 136.7);
Tailwind
colors: {
  custom: {
    50: '#6b8858',
    500: '#2e5917',
    950: '#000000',
  },
}
SCSS
$custom: #2e5917;
$custom-light: #6b8858;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5917",
  "rgb": {
    "r": 46,
    "g": 89,
    "b": 23
  },
  "hsl": {
    "h": 99.091,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.41765,
    "c": 0.10675,
    "h": 136.7
  },
  "luminance": 0.07787
}

Semantic roles & 50–950 ramp

primary
#2E5917
secondary
#733C90
accent
#46E2AC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5917

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

Preview Lab → · Contrast checker → · Palette generator →

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