#2E5115#2E5115

#2E5115 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.097 H 134.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2E5115
RGBrgb(46, 81, 21)
HSLhsl(95, 59%, 20%)
HSVhsv(95, 74%, 32%)
CMYKcmyk(43.2%, 0%, 74.1%, 68.2%)
CIE-LABlab(30.69, -24.41, 30.06)
CIE-LCHlch(30.69, 38.72, 129.08°)
OKLaboklab(39.43% -0.0681 0.0686)
OKLCHoklch(39.43% 0.097 134.8)
XYZxyz(4.2044, 6.5196, 1.7462)
Luminance0.0652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5115 #381551
analogous
#4C5115 #2E5115 #15511A
triadic
#2E5115 #152E51 #51152E
tetradic
#2E5115 #154C51 #381551 #511A15
square
#2E5115 #154C51 #381551 #511A15
split-complementary
#2E5115 #1A1551 #51154C
monochromatic
#0E1806 #122008 #2E5115 #4A8222 #65B22E

Accessibility & contrast

On white

9.11
#2E5115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2E5115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5115
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5115#FFFFFF#000000##FFFFFF
##2E51151.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0C
Deuteranopia (green-blind)
#4F471A
Tritanopia (blue-blind)
#2D4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2e5115;
/* rgb */ color: rgb(46, 81, 21);
/* oklch */ color: oklch(39.4% 0.097 134.8);
Tailwind
colors: {
  custom: {
    50: '#6a8256',
    500: '#2e5115',
    950: '#000000',
  },
}
SCSS
$custom: #2e5115;
$custom-light: #6a8256;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5115",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 95,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.39426,
    "c": 0.09661,
    "h": 134.8
  },
  "luminance": 0.0652
}

Semantic roles & 50–950 ramp

primary
#2E5115
secondary
#683989
accent
#46E2A1
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5115

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

Preview Lab → · Contrast checker → · Palette generator →

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