#2E5A0F#2E5A0F

#2E5A0F is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.0% C 0.114 H 135.7°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2E5A0F
RGBrgb(46, 90, 15)
HSLhsl(95, 71%, 21%)
HSVhsv(95, 83%, 35%)
CMYKcmyk(48.9%, 0%, 83.3%, 64.7%)
CIE-LABlab(33.83, -29.09, 35.68)
CIE-LCHlch(33.83, 46.04, 129.19°)
OKLaboklab(41.99% -0.0812 0.0794)
OKLCHoklch(41.99% 0.114 135.7)
XYZxyz(4.8690, 7.9274, 1.7254)
Luminance0.0793 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5A0F #3B0F5A
analogous
#535A0F #2E5A0F #0F5A15
triadic
#2E5A0F #0F2E5A #5A0F2E
tetradic
#2E5A0F #0F535A #3B0F5A #5A150F
square
#2E5A0F #0F535A #3B0F5A #5A150F
split-complementary
#2E5A0F #150F5A #5A0F53
monochromatic
#0D1A04 #132606 #2E5A0F #498E18 #64C320

Accessibility & contrast

On white

8.12
#2E5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2E5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5A0F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5A0F#FFFFFF#000000##FFFFFF
##2E5A0F1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5200
Deuteranopia (green-blind)
#584E17
Tritanopia (blue-blind)
#2C564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e5a0f;
/* rgb */ color: rgb(46, 90, 15);
/* oklch */ color: oklch(42.0% 0.114 135.7);
Tailwind
colors: {
  custom: {
    50: '#6c8954',
    500: '#2e5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2e5a0f;
$custom-light: #6c8954;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5a0f",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 95.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41989,
    "c": 0.11354,
    "h": 135.7
  },
  "luminance": 0.07928
}

Semantic roles & 50–950 ramp

primary
#2E5A0F
secondary
#6B3194
accent
#3AEEA4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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