#2E5017#2E5017

#2E5017 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.093 H 135.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2E5017
RGBrgb(46, 80, 23)
HSLhsl(96, 55%, 20%)
HSVhsv(96, 71%, 31%)
CMYKcmyk(42.5%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.35, -23.73, 28.75)
CIE-LCHlch(30.35, 37.27, 129.53°)
OKLaboklab(39.16% -0.066 0.0661)
OKLCHoklch(39.16% 0.093 135)
XYZxyz(4.1499, 6.3798, 1.8232)
Luminance0.0638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5017 #391750
analogous
#4B5017 #2E5017 #17501C
triadic
#2E5017 #172E50 #50172E
tetradic
#2E5017 #174B50 #391750 #501C17
square
#2E5017 #174B50 #391750 #501C17
split-complementary
#2E5017 #1C1750 #50174B
monochromatic
#0E1807 #132009 #2E5017 #498025 #65AF32

Accessibility & contrast

On white

9.23
#2E5017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2E5017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5017
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5017#FFFFFF#000000##FFFFFF
##2E50171.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#2D4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e5017;
/* rgb */ color: rgb(46, 80, 23);
/* oklch */ color: oklch(39.2% 0.093 135.0);
Tailwind
colors: {
  custom: {
    50: '#6a8157',
    500: '#2e5017',
    950: '#000000',
  },
}
SCSS
$custom: #2e5017;
$custom-light: #6a8157;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5017",
  "rgb": {
    "r": 46,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 95.789,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39158,
    "c": 0.09342,
    "h": 135
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#2E5017
secondary
#693C87
accent
#49DFA2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5017

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

Preview Lab → · Contrast checker → · Palette generator →

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