#2E5418#2E5418

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

Color values

HEX#2E5418
RGBrgb(46, 84, 24)
HSLhsl(98, 56%, 21%)
HSVhsv(98, 71%, 33%)
CMYKcmyk(45.2%, 0%, 71.4%, 67.1%)
CIE-LABlab(31.78, -25.57, 29.80)
CIE-LCHlch(31.78, 39.27, 130.63°)
OKLaboklab(40.33% -0.071 0.0685)
OKLCHoklch(40.33% 0.099 136)
XYZxyz(4.4618, 6.9872, 1.9775)
Luminance0.0699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5418 #3E1854
analogous
#4C5418 #2E5418 #185420
triadic
#2E5418 #182E54 #54182E
tetradic
#2E5418 #184C54 #3E1854 #542018
square
#2E5418 #184C54 #3E1854 #542018
split-complementary
#2E5418 #201854 #54184C
monochromatic
#0D1807 #14240A #2E5418 #488426 #62B333

Accessibility & contrast

On white

8.76
#2E5418 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2E5418 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5418
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5418#FFFFFF#000000##FFFFFF
##2E54181.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D10
Deuteranopia (green-blind)
#524A1D
Tritanopia (blue-blind)
#2D5148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e5418;
/* rgb */ color: rgb(46, 84, 24);
/* oklch */ color: oklch(40.3% 0.099 136.0);
Tailwind
colors: {
  custom: {
    50: '#6a8458',
    500: '#2e5418',
    950: '#000000',
  },
}
SCSS
$custom: #2e5418;
$custom-light: #6a8458;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5418",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 24
  },
  "hsl": {
    "h": 98,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40327,
    "c": 0.0986,
    "h": 136
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#2E5418
secondary
#6E3D8B
accent
#49DFA8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5418

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

Preview Lab → · Contrast checker → · Palette generator →

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