#2E5617#2E5617

#2E5617 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 40.9% C 0.102 H 136.2°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2E5617
RGBrgb(46, 86, 23)
HSLhsl(98, 58%, 21%)
HSVhsv(98, 73%, 34%)
CMYKcmyk(46.5%, 0%, 73.3%, 66.3%)
CIE-LABlab(32.48, -26.62, 31.02)
CIE-LCHlch(32.48, 40.87, 130.63°)
OKLaboklab(40.9% -0.0739 0.0709)
OKLCHoklch(40.9% 0.102 136.2)
XYZxyz(4.6090, 7.2980, 1.9762)
Luminance0.0730 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5617 #3F1756
analogous
#4E5617 #2E5617 #175620
triadic
#2E5617 #172E56 #56172E
tetradic
#2E5617 #174E56 #3F1756 #562017
square
#2E5617 #174E56 #3F1756 #562017
split-complementary
#2E5617 #201756 #56174E
monochromatic
#0D1806 #14260A #2E5617 #488624 #62B731

Accessibility & contrast

On white

8.54
#2E5617 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2E5617 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5617
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5617#FFFFFF#000000##FFFFFF
##2E56171.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E0E
Deuteranopia (green-blind)
#544B1D
Tritanopia (blue-blind)
#2C5349
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e5617;
/* rgb */ color: rgb(46, 86, 23);
/* oklch */ color: oklch(40.9% 0.102 136.2);
Tailwind
colors: {
  custom: {
    50: '#6b8658',
    500: '#2e5617',
    950: '#000000',
  },
}
SCSS
$custom: #2e5617;
$custom-light: #6b8658;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5617",
  "rgb": {
    "r": 46,
    "g": 86,
    "b": 23
  },
  "hsl": {
    "h": 98.095,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.40896,
    "c": 0.10239,
    "h": 136.2
  },
  "luminance": 0.07298
}

Semantic roles & 50–950 ramp

primary
#2E5617
secondary
#6F3C8D
accent
#47E1A9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5617

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

Preview Lab → · Contrast checker → · Palette generator →

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