#2E5015#2E5015

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

Color values

HEX#2E5015
RGBrgb(46, 80, 21)
HSLhsl(95, 58%, 20%)
HSVhsv(95, 74%, 31%)
CMYKcmyk(42.5%, 0%, 73.7%, 68.6%)
CIE-LABlab(30.33, -23.92, 29.69)
CIE-LCHlch(30.33, 38.12, 128.86°)
OKLaboklab(39.14% -0.0667 0.0678)
OKLCHoklch(39.14% 0.095 134.6)
XYZxyz(4.1306, 6.3721, 1.7216)
Luminance0.0637 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5015 #371550
analogous
#4C5015 #2E5015 #155019
triadic
#2E5015 #152E50 #50152E
tetradic
#2E5015 #154C50 #371550 #501915
square
#2E5015 #154C50 #371550 #501915
split-complementary
#2E5015 #191550 #50154C
monochromatic
#0E1806 #122008 #2E5015 #4A8022 #66B12E

Accessibility & contrast

On white

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

On black

2.27
#2E5015 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2E5015#FFFFFF#000000##FFFFFF
##2E50151.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490D
Deuteranopia (green-blind)
#4F461A
Tritanopia (blue-blind)
#2E4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e5015;
/* rgb */ color: rgb(46, 80, 21);
/* oklch */ color: oklch(39.1% 0.095 134.6);
Tailwind
colors: {
  custom: {
    50: '#6a8156',
    500: '#2e5015',
    950: '#000000',
  },
}
SCSS
$custom: #2e5015;
$custom-light: #6a8156;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5015",
  "rgb": {
    "r": 46,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 94.576,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39136,
    "c": 0.09511,
    "h": 134.6
  },
  "luminance": 0.06372
}

Semantic roles & 50–950 ramp

primary
#2E5015
secondary
#663988
accent
#46E2A0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5015

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

Preview Lab → · Contrast checker → · Palette generator →

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