#2E5012#2E5012

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

Color values

HEX#2E5012
RGBrgb(46, 80, 18)
HSLhsl(93, 63%, 19%)
HSVhsv(93, 78%, 31%)
CMYKcmyk(42.5%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.31, -24.18, 31.02)
CIE-LCHlch(30.31, 39.33, 127.94°)
OKLaboklab(39.11% -0.0677 0.0701)
OKLCHoklch(39.11% 0.097 134)
XYZxyz(4.1045, 6.3616, 1.5838)
Luminance0.0636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5012 #341250
analogous
#4D5012 #2E5012 #125015
triadic
#2E5012 #122E50 #50122E
tetradic
#2E5012 #124D50 #341250 #501512
square
#2E5012 #124D50 #341250 #501512
split-complementary
#2E5012 #151250 #50124D
monochromatic
#0E1906 #111E07 #2E5012 #4B821D #67B428

Accessibility & contrast

On white

9.24
#2E5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E5012
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5012#FFFFFF#000000##FFFFFF
##2E50121.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534908
Deuteranopia (green-blind)
#4F4618
Tritanopia (blue-blind)
#2E4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e5012;
/* rgb */ color: rgb(46, 80, 18);
/* oklch */ color: oklch(39.1% 0.097 134.0);
Tailwind
colors: {
  custom: {
    50: '#6a8154',
    500: '#2e5012',
    950: '#000000',
  },
}
SCSS
$custom: #2e5012;
$custom-light: #6a8154;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5012",
  "rgb": {
    "r": 46,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 92.903,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39107,
    "c": 0.09746,
    "h": 134
  },
  "luminance": 0.06362
}

Semantic roles & 50–950 ramp

primary
#2E5012
secondary
#633589
accent
#41E69C
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5012

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

Preview Lab → · Contrast checker → · Palette generator →

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