#2E5812#2E5812

#2E5812 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.4% C 0.109 H 135.7°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#2E5812
RGBrgb(46, 88, 18)
HSLhsl(96, 66%, 21%)
HSVhsv(96, 80%, 35%)
CMYKcmyk(47.7%, 0%, 79.5%, 65.5%)
CIE-LABlab(33.14, -27.97, 33.87)
CIE-LCHlch(33.14, 43.93, 129.55°)
OKLaboklab(41.43% -0.078 0.0761)
OKLCHoklch(41.43% 0.109 135.7)
XYZxyz(4.7255, 7.6037, 1.7908)
Luminance0.0760 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5812 #3C1258
analogous
#515812 #2E5812 #125819
triadic
#2E5812 #122E58 #58122E
tetradic
#2E5812 #125158 #3C1258 #581912
square
#2E5812 #125158 #3C1258 #581912
split-complementary
#2E5812 #191258 #581251
monochromatic
#0D1905 #132508 #2E5812 #498B1C #63BE27

Accessibility & contrast

On white

8.33
#2E5812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2E5812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5812
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5812#FFFFFF#000000##FFFFFF
##2E58121.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5005
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#2D544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e5812;
/* rgb */ color: rgb(46, 88, 18);
/* oklch */ color: oklch(41.4% 0.109 135.7);
Tailwind
colors: {
  custom: {
    50: '#6b8755',
    500: '#2e5812',
    950: '#000000',
  },
}
SCSS
$custom: #2e5812;
$custom-light: #6b8755;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5812",
  "rgb": {
    "r": 46,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 96,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.41431,
    "c": 0.10892,
    "h": 135.7
  },
  "luminance": 0.07604
}

Semantic roles & 50–950 ramp

primary
#2E5812
secondary
#6C3591
accent
#3FE9A5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5812

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

Preview Lab → · Contrast checker → · Palette generator →

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