#2E5212#2E5212

#2E5212 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.100 H 134.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2E5212
RGBrgb(46, 82, 18)
HSLhsl(94, 64%, 20%)
HSVhsv(94, 78%, 32%)
CMYKcmyk(43.9%, 0%, 78%, 67.8%)
CIE-LABlab(31.02, -25.15, 31.74)
CIE-LCHlch(31.02, 40.50, 128.39°)
OKLaboklab(39.69% -0.0703 0.0716)
OKLCHoklch(39.69% 0.1 134.5)
XYZxyz(4.2531, 6.6589, 1.6333)
Luminance0.0666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5212 #361252
analogous
#4E5212 #2E5212 #125216
triadic
#2E5212 #122E52 #52122E
tetradic
#2E5212 #124E52 #361252 #521612
square
#2E5212 #124E52 #361252 #521612
split-complementary
#2E5212 #161252 #52124E
monochromatic
#0E1906 #122007 #2E5212 #4A841D #66B628

Accessibility & contrast

On white

9.01
#2E5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2E5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5212
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5212#FFFFFF#000000##FFFFFF
##2E52121.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B07
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#2D4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e5212;
/* rgb */ color: rgb(46, 82, 18);
/* oklch */ color: oklch(39.7% 0.100 134.5);
Tailwind
colors: {
  custom: {
    50: '#6a8354',
    500: '#2e5212',
    950: '#000000',
  },
}
SCSS
$custom: #2e5212;
$custom-light: #6a8354;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5212",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 93.75,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39688,
    "c": 0.10038,
    "h": 134.5
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#2E5212
secondary
#65358B
accent
#41E79E
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5212

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

Preview Lab → · Contrast checker → · Palette generator →

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