#2E5018#2E5018

#2E5018 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.093 H 135.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2E5018
RGBrgb(46, 80, 24)
HSLhsl(96, 54%, 20%)
HSVhsv(96, 70%, 31%)
CMYKcmyk(42.5%, 0%, 70%, 68.6%)
CIE-LABlab(30.36, -23.62, 28.27)
CIE-LCHlch(30.36, 36.84, 129.89°)
OKLaboklab(39.17% -0.0657 0.0652)
OKLCHoklch(39.17% 0.093 135.2)
XYZxyz(4.1601, 6.3839, 1.8770)
Luminance0.0638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5018 #3A1850
analogous
#4A5018 #2E5018 #18501E
triadic
#2E5018 #182E50 #50182E
tetradic
#2E5018 #184A50 #3A1850 #501E18
square
#2E5018 #184A50 #3A1850 #501E18
split-complementary
#2E5018 #1E1850 #50184A
monochromatic
#0E1807 #13210A #2E5018 #497F26 #64AE34

Accessibility & contrast

On white

9.22
#2E5018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2E5018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5018
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5018#FFFFFF#000000##FFFFFF
##2E50181.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534911
Deuteranopia (green-blind)
#4E461D
Tritanopia (blue-blind)
#2D4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e5018;
/* rgb */ color: rgb(46, 80, 24);
/* oklch */ color: oklch(39.2% 0.093 135.2);
Tailwind
colors: {
  custom: {
    50: '#6a8158',
    500: '#2e5018',
    950: '#000000',
  },
}
SCSS
$custom: #2e5018;
$custom-light: #6a8158;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5018",
  "rgb": {
    "r": 46,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 96.429,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39169,
    "c": 0.09255,
    "h": 135.2
  },
  "luminance": 0.06384
}

Semantic roles & 50–950 ramp

primary
#2E5018
secondary
#6A3D87
accent
#4BDDA4
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5018

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

Preview Lab → · Contrast checker → · Palette generator →

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