#2E5517#2E5517

#2E5517 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.6% C 0.101 H 136.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2E5517
RGBrgb(46, 85, 23)
HSLhsl(98, 57%, 21%)
HSVhsv(98, 73%, 33%)
CMYKcmyk(45.9%, 0%, 72.9%, 66.7%)
CIE-LABlab(32.12, -26.14, 30.64)
CIE-LCHlch(32.12, 40.28, 130.47°)
OKLaboklab(40.61% -0.0726 0.0701)
OKLCHoklch(40.61% 0.101 136)
XYZxyz(4.5298, 7.1394, 1.9498)
Luminance0.0714 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5517 #3E1755
analogous
#4D5517 #2E5517 #17551F
triadic
#2E5517 #172E55 #55172E
tetradic
#2E5517 #174D55 #3E1755 #551F17
square
#2E5517 #174D55 #3E1755 #551F17
split-complementary
#2E5517 #1F1755 #55174D
monochromatic
#0D1807 #14250A #2E5517 #488524 #62B531

Accessibility & contrast

On white

8.65
#2E5517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2E5517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5517
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5517#FFFFFF#000000##FFFFFF
##2E55171.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E0E
Deuteranopia (green-blind)
#534A1C
Tritanopia (blue-blind)
#2D5248
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e5517;
/* rgb */ color: rgb(46, 85, 23);
/* oklch */ color: oklch(40.6% 0.101 136.0);
Tailwind
colors: {
  custom: {
    50: '#6a8558',
    500: '#2e5517',
    950: '#000000',
  },
}
SCSS
$custom: #2e5517;
$custom-light: #6a8558;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5517",
  "rgb": {
    "r": 46,
    "g": 85,
    "b": 23
  },
  "hsl": {
    "h": 97.742,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40606,
    "c": 0.10092,
    "h": 136
  },
  "luminance": 0.0714
}

Semantic roles & 50–950 ramp

primary
#2E5517
secondary
#6E3C8C
accent
#47E1A8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5517

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

Preview Lab → · Contrast checker → · Palette generator →

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