#2E5317#2E5317

#2E5317 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.098 H 135.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2E5317
RGBrgb(46, 83, 23)
HSLhsl(97, 57%, 21%)
HSVhsv(97, 72%, 33%)
CMYKcmyk(44.6%, 0%, 72.3%, 67.5%)
CIE-LABlab(31.41, -25.19, 29.89)
CIE-LCHlch(31.41, 39.09, 130.12°)
OKLaboklab(40.03% -0.07 0.0685)
OKLCHoklch(40.03% 0.098 135.6)
XYZxyz(4.3745, 6.8290, 1.8981)
Luminance0.0683 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5317 #3C1753
analogous
#4C5317 #2E5317 #17531E
triadic
#2E5317 #172E53 #53172E
tetradic
#2E5317 #174C53 #3C1753 #531E17
square
#2E5317 #174C53 #3C1753 #531E17
split-complementary
#2E5317 #1E1753 #53174C
monochromatic
#0D1807 #13230A #2E5317 #498324 #63B332

Accessibility & contrast

On white

8.88
#2E5317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2E5317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5317
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5317#FFFFFF#000000##FFFFFF
##2E53171.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0F
Deuteranopia (green-blind)
#51491C
Tritanopia (blue-blind)
#2D5047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e5317;
/* rgb */ color: rgb(46, 83, 23);
/* oklch */ color: oklch(40.0% 0.098 135.6);
Tailwind
colors: {
  custom: {
    50: '#6a8357',
    500: '#2e5317',
    950: '#000000',
  },
}
SCSS
$custom: #2e5317;
$custom-light: #6a8357;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5317",
  "rgb": {
    "r": 46,
    "g": 83,
    "b": 23
  },
  "hsl": {
    "h": 97,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40027,
    "c": 0.09795,
    "h": 135.6
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#2E5317
secondary
#6C3C8A
accent
#48E0A6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5317

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

Preview Lab → · Contrast checker → · Palette generator →

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