#2E5B17#2E5B17

#2E5B17 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.110 H 137.0°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2E5B17
RGBrgb(46, 91, 23)
HSLhsl(100, 60%, 22%)
HSVhsv(100, 75%, 36%)
CMYKcmyk(49.5%, 0%, 74.7%, 64.3%)
CIE-LABlab(34.24, -28.93, 32.87)
CIE-LCHlch(34.24, 43.79, 131.35°)
OKLaboklab(42.34% -0.0802 0.0748)
OKLCHoklch(42.34% 0.11 137)
XYZxyz(5.0223, 8.1246, 2.1140)
Luminance0.0813 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5B17 #44175B
analogous
#505B17 #2E5B17 #175B22
triadic
#2E5B17 #172E5B #5B172E
tetradic
#2E5B17 #17505B #44175B #5B2217
square
#2E5B17 #17505B #44175B #5B2217
split-complementary
#2E5B17 #22175B #5B1750
monochromatic
#0C1806 #152A0B #2E5B17 #478C23 #5FBD30

Accessibility & contrast

On white

8.00
#2E5B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2E5B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5B17
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5B17#FFFFFF#000000##FFFFFF
##2E5B171.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530D
Deuteranopia (green-blind)
#584F1D
Tritanopia (blue-blind)
#2C584D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2e5b17;
/* rgb */ color: rgb(46, 91, 23);
/* oklch */ color: oklch(42.3% 0.110 137.0);
Tailwind
colors: {
  custom: {
    50: '#6b8a58',
    500: '#2e5b17',
    950: '#000000',
  },
}
SCSS
$custom: #2e5b17;
$custom-light: #6b8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5b17",
  "rgb": {
    "r": 46,
    "g": 91,
    "b": 23
  },
  "hsl": {
    "h": 99.706,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42343,
    "c": 0.10961,
    "h": 137
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#2E5B17
secondary
#753C92
accent
#45E3AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5B17

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

Preview Lab → · Contrast checker → · Palette generator →

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