#2E5512#2E5512

#2E5512 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.6% C 0.105 H 135.1°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#2E5512
RGBrgb(46, 85, 18)
HSLhsl(95, 65%, 20%)
HSVhsv(95, 79%, 33%)
CMYKcmyk(45.9%, 0%, 78.8%, 66.7%)
CIE-LABlab(32.08, -26.58, 32.81)
CIE-LCHlch(32.08, 42.22, 129.01°)
OKLaboklab(40.56% -0.0742 0.0739)
OKLCHoklch(40.56% 0.105 135.1)
XYZxyz(4.4843, 7.1213, 1.7104)
Luminance0.0712 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5512 #391255
analogous
#505512 #2E5512 #125517
triadic
#2E5512 #122E55 #55122E
tetradic
#2E5512 #125055 #391255 #551712
square
#2E5512 #125055 #391255 #551712
split-complementary
#2E5512 #171255 #551250
monochromatic
#0E1905 #132207 #2E5512 #49881D #65BA27

Accessibility & contrast

On white

8.66
#2E5512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2E5512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5512
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5512#FFFFFF#000000##FFFFFF
##2E55121.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D06
Deuteranopia (green-blind)
#534A19
Tritanopia (blue-blind)
#2D5148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e5512;
/* rgb */ color: rgb(46, 85, 18);
/* oklch */ color: oklch(40.6% 0.105 135.1);
Tailwind
colors: {
  custom: {
    50: '#6b8555',
    500: '#2e5512',
    950: '#000000',
  },
}
SCSS
$custom: #2e5512;
$custom-light: #6b8555;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5512",
  "rgb": {
    "r": 46,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 94.925,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.4056,
    "c": 0.10469,
    "h": 135.1
  },
  "luminance": 0.07122
}

Semantic roles & 50–950 ramp

primary
#2E5512
secondary
#69358E
accent
#40E8A2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5512

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

Preview Lab → · Contrast checker → · Palette generator →

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