#2E5211#2E5211

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

Color values

HEX#2E5211
RGBrgb(46, 82, 17)
HSLhsl(93, 66%, 19%)
HSVhsv(93, 79%, 32%)
CMYKcmyk(43.9%, 0%, 79.3%, 67.8%)
CIE-LABlab(31.01, -25.23, 32.15)
CIE-LCHlch(31.01, 40.87, 128.12°)
OKLaboklab(39.68% -0.0706 0.0723)
OKLCHoklch(39.68% 0.101 134.3)
XYZxyz(4.2451, 6.6557, 1.5912)
Luminance0.0666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5211 #351152
analogous
#4F5211 #2E5211 #115215
triadic
#2E5211 #112E52 #52112E
tetradic
#2E5211 #114F52 #351152 #521511
square
#2E5211 #114F52 #351152 #521511
split-complementary
#2E5211 #151152 #52114F
monochromatic
#0E1905 #121F06 #2E5211 #4A851C #67B726

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E5211#FFFFFF#000000##FFFFFF
##2E52111.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)
#554B06
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#2E4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e5211;
/* rgb */ color: rgb(46, 82, 17);
/* oklch */ color: oklch(39.7% 0.101 134.3);
Tailwind
colors: {
  custom: {
    50: '#6a8354',
    500: '#2e5211',
    950: '#000000',
  },
}
SCSS
$custom: #2e5211;
$custom-light: #6a8354;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5211",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 93.231,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3968,
    "c": 0.10108,
    "h": 134.3
  },
  "luminance": 0.06656
}

Semantic roles & 50–950 ramp

primary
#2E5211
secondary
#64348B
accent
#3FE99D
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5211

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

Preview Lab → · Contrast checker → · Palette generator →

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