#2E5412#2E5412

#2E5412 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.3% C 0.103 H 134.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2E5412
RGBrgb(46, 84, 18)
HSLhsl(95, 65%, 20%)
HSVhsv(95, 79%, 33%)
CMYKcmyk(45.2%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.73, -26.10, 32.45)
CIE-LCHlch(31.73, 41.65, 128.81°)
OKLaboklab(40.27% -0.0729 0.0731)
OKLCHoklch(40.27% 0.103 134.9)
XYZxyz(4.4061, 6.9649, 1.6843)
Luminance0.0697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5412 #381254
analogous
#4F5412 #2E5412 #125417
triadic
#2E5412 #122E54 #54122E
tetradic
#2E5412 #124F54 #381254 #541712
square
#2E5412 #124F54 #381254 #541712
split-complementary
#2E5412 #171254 #54124F
monochromatic
#0E1905 #122207 #2E5412 #4A861D #65B928

Accessibility & contrast

On white

8.78
#2E5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2E5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5412
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5412#FFFFFF#000000##FFFFFF
##2E54121.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D07
Deuteranopia (green-blind)
#524A18
Tritanopia (blue-blind)
#2D5147
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e5412;
/* rgb */ color: rgb(46, 84, 18);
/* oklch */ color: oklch(40.3% 0.103 134.9);
Tailwind
colors: {
  custom: {
    50: '#6b8455',
    500: '#2e5412',
    950: '#000000',
  },
}
SCSS
$custom: #2e5412;
$custom-light: #6b8455;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5412",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 94.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40269,
    "c": 0.10325,
    "h": 134.9
  },
  "luminance": 0.06965
}

Semantic roles & 50–950 ramp

primary
#2E5412
secondary
#68358D
accent
#40E8A1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5412

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

Preview Lab → · Contrast checker → · Palette generator →

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