#2E4812#2E4812

#2E4812 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.8% C 0.085 H 131.6°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2E4812
RGBrgb(46, 72, 18)
HSLhsl(89, 60%, 18%)
HSVhsv(89, 75%, 28%)
CMYKcmyk(36.1%, 0%, 75%, 71.8%)
CIE-LABlab(27.46, -20.14, 28.08)
CIE-LCHlch(27.46, 34.56, 125.66°)
OKLaboklab(36.78% -0.0567 0.0639)
OKLCHoklch(36.78% 0.085 131.6)
XYZxyz(3.5532, 5.2591, 1.4000)
Luminance0.0526 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4812 #2C1248
analogous
#484712 #2E4812 #134812
triadic
#2E4812 #122E48 #48122E
tetradic
#2E4812 #124847 #2C1248 #481213
square
#2E4812 #124847 #2C1248 #481213
split-complementary
#2E4812 #121348 #471248
monochromatic
#101806 #101806 #2E4812 #4D791E #6DAA2A

Accessibility & contrast

On white

10.23
#2E4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2E4812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4812
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4812#FFFFFF#000000##FFFFFF
##2E48121.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420A
Deuteranopia (green-blind)
#484017
Tritanopia (blue-blind)
#2F453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e4812;
/* rgb */ color: rgb(46, 72, 18);
/* oklch */ color: oklch(36.8% 0.085 131.6);
Tailwind
colors: {
  custom: {
    50: '#697b53',
    500: '#2e4812',
    950: '#000000',
  },
}
SCSS
$custom: #2e4812;
$custom-light: #697b53;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4812",
  "rgb": {
    "r": 46,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 88.889,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36784,
    "c": 0.08546,
    "h": 131.6
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#2E4812
secondary
#593581
accent
#45E391
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2E4812

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

Preview Lab → · Contrast checker → · Palette generator →

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