#2E5312#2E5312

#2E5312 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.102 H 134.7°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2E5312
RGBrgb(46, 83, 18)
HSLhsl(94, 64%, 20%)
HSVhsv(94, 78%, 33%)
CMYKcmyk(44.6%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.37, -25.63, 32.10)
CIE-LCHlch(31.37, 41.07, 128.61°)
OKLaboklab(39.98% -0.0716 0.0724)
OKLCHoklch(39.98% 0.102 134.7)
XYZxyz(4.3291, 6.8108, 1.6587)
Luminance0.0681 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5312 #371253
analogous
#4E5312 #2E5312 #125317
triadic
#2E5312 #122E53 #53122E
tetradic
#2E5312 #124E53 #371253 #531712
square
#2E5312 #124E53 #371253 #531712
split-complementary
#2E5312 #171253 #53124E
monochromatic
#0E1905 #122107 #2E5312 #4A851D #66B828

Accessibility & contrast

On white

8.89
#2E5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2E5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5312
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5312#FFFFFF#000000##FFFFFF
##2E53121.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C07
Deuteranopia (green-blind)
#514918
Tritanopia (blue-blind)
#2D5046
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e5312;
/* rgb */ color: rgb(46, 83, 18);
/* oklch */ color: oklch(40.0% 0.102 134.7);
Tailwind
colors: {
  custom: {
    50: '#6b8355',
    500: '#2e5312',
    950: '#000000',
  },
}
SCSS
$custom: #2e5312;
$custom-light: #6b8355;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5312",
  "rgb": {
    "r": 46,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 94.154,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39979,
    "c": 0.10182,
    "h": 134.7
  },
  "luminance": 0.06811
}

Semantic roles & 50–950 ramp

primary
#2E5312
secondary
#66358C
accent
#40E79F
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5312

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

Preview Lab → · Contrast checker → · Palette generator →

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