#2E5A17#2E5A17

#2E5A17 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.108 H 136.9°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#2E5A17
RGBrgb(46, 90, 23)
HSLhsl(99, 59%, 22%)
HSVhsv(99, 74%, 35%)
CMYKcmyk(48.9%, 0%, 74.4%, 64.7%)
CIE-LABlab(33.89, -28.47, 32.50)
CIE-LCHlch(33.89, 43.21, 131.22°)
OKLaboklab(42.05% -0.0789 0.074)
OKLCHoklch(42.05% 0.108 136.9)
XYZxyz(4.9374, 7.9547, 2.0857)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5A17 #43175A
analogous
#505A17 #2E5A17 #175A22
triadic
#2E5A17 #172E5A #5A172E
tetradic
#2E5A17 #17505A #43175A #5A2217
square
#2E5A17 #17505A #43175A #5A2217
split-complementary
#2E5A17 #22175A #5A1750
monochromatic
#0C1806 #15290B #2E5A17 #478B23 #60BB30

Accessibility & contrast

On white

8.10
#2E5A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2E5A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5A17
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5A17#FFFFFF#000000##FFFFFF
##2E5A171.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520D
Deuteranopia (green-blind)
#574E1D
Tritanopia (blue-blind)
#2C574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e5a17;
/* rgb */ color: rgb(46, 90, 23);
/* oklch */ color: oklch(42.1% 0.108 136.9);
Tailwind
colors: {
  custom: {
    50: '#6b8958',
    500: '#2e5a17',
    950: '#000000',
  },
}
SCSS
$custom: #2e5a17;
$custom-light: #6b8958;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5a17",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 23
  },
  "hsl": {
    "h": 99.403,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42054,
    "c": 0.10819,
    "h": 136.9
  },
  "luminance": 0.07955
}

Semantic roles & 50–950 ramp

primary
#2E5A17
secondary
#743C91
accent
#45E2AD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5A17

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

Preview Lab → · Contrast checker → · Palette generator →

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