#2E5712#2E5712

#2E5712 is a dark, moderate yellow-green. Relative luminance 0.074; OKLCH L 41.1% C 0.108 H 135.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2E5712
RGBrgb(46, 87, 18)
HSLhsl(96, 66%, 21%)
HSVhsv(96, 79%, 34%)
CMYKcmyk(47.1%, 0%, 79.3%, 65.9%)
CIE-LABlab(32.79, -27.51, 33.52)
CIE-LCHlch(32.79, 43.36, 129.38°)
OKLaboklab(41.14% -0.0767 0.0753)
OKLCHoklch(41.14% 0.108 135.5)
XYZxyz(4.6440, 7.4406, 1.7636)
Luminance0.0744 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5712 #3B1257
analogous
#505712 #2E5712 #125718
triadic
#2E5712 #122E57 #57122E
tetradic
#2E5712 #125057 #3B1257 #571812
square
#2E5712 #125057 #3B1257 #571812
split-complementary
#2E5712 #181257 #571250
monochromatic
#0D1905 #132408 #2E5712 #498A1C #64BC27

Accessibility & contrast

On white

8.44
#2E5712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2E5712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5712
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5712#FFFFFF#000000##FFFFFF
##2E57121.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F06
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#2D534A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e5712;
/* rgb */ color: rgb(46, 87, 18);
/* oklch */ color: oklch(41.1% 0.108 135.5);
Tailwind
colors: {
  custom: {
    50: '#6b8755',
    500: '#2e5712',
    950: '#000000',
  },
}
SCSS
$custom: #2e5712;
$custom-light: #6b8755;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5712",
  "rgb": {
    "r": 46,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 95.652,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.4114,
    "c": 0.10751,
    "h": 135.5
  },
  "luminance": 0.07441
}

Semantic roles & 50–950 ramp

primary
#2E5712
secondary
#6B3590
accent
#3FE9A4
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5712

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

Preview Lab → · Contrast checker → · Palette generator →

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