#2E5417#2E5417

#2E5417 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.3% C 0.099 H 135.8°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2E5417
RGBrgb(46, 84, 23)
HSLhsl(97, 57%, 21%)
HSVhsv(97, 73%, 33%)
CMYKcmyk(45.2%, 0%, 72.6%, 67.1%)
CIE-LABlab(31.77, -25.67, 30.27)
CIE-LCHlch(31.77, 39.69, 130.30°)
OKLaboklab(40.32% -0.0713 0.0693)
OKLCHoklch(40.32% 0.099 135.8)
XYZxyz(4.4516, 6.9831, 1.9238)
Luminance0.0698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5417 #3D1754
analogous
#4C5417 #2E5417 #17541E
triadic
#2E5417 #172E54 #54172E
tetradic
#2E5417 #174C54 #3D1754 #541E17
square
#2E5417 #174C54 #3D1754 #541E17
split-complementary
#2E5417 #1E1754 #54174C
monochromatic
#0D1807 #14240A #2E5417 #488424 #63B431

Accessibility & contrast

On white

8.76
#2E5417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2E5417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5417
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5417#FFFFFF#000000##FFFFFF
##2E54171.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D0F
Deuteranopia (green-blind)
#524A1C
Tritanopia (blue-blind)
#2D5148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e5417;
/* rgb */ color: rgb(46, 84, 23);
/* oklch */ color: oklch(40.3% 0.099 135.8);
Tailwind
colors: {
  custom: {
    50: '#6a8458',
    500: '#2e5417',
    950: '#000000',
  },
}
SCSS
$custom: #2e5417;
$custom-light: #6a8458;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5417",
  "rgb": {
    "r": 46,
    "g": 84,
    "b": 23
  },
  "hsl": {
    "h": 97.377,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.40317,
    "c": 0.09944,
    "h": 135.8
  },
  "luminance": 0.06983
}

Semantic roles & 50–950 ramp

primary
#2E5417
secondary
#6D3C8B
accent
#48E0A7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5417

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

Preview Lab → · Contrast checker → · Palette generator →

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