#2E5817#2E5817

#2E5817 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.5% C 0.105 H 136.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2E5817
RGBrgb(46, 88, 23)
HSLhsl(99, 59%, 22%)
HSVhsv(99, 74%, 35%)
CMYKcmyk(47.7%, 0%, 73.9%, 65.5%)
CIE-LABlab(33.18, -27.55, 31.76)
CIE-LCHlch(33.18, 42.05, 130.94°)
OKLaboklab(41.48% -0.0764 0.0724)
OKLCHoklch(41.48% 0.105 136.5)
XYZxyz(4.7710, 7.6219, 2.0302)
Luminance0.0762 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5817 #411758
analogous
#4F5817 #2E5817 #175821
triadic
#2E5817 #172E58 #58172E
tetradic
#2E5817 #174F58 #411758 #582117
square
#2E5817 #174F58 #411758 #582117
split-complementary
#2E5817 #211758 #58174F
monochromatic
#0D1806 #15270A #2E5817 #478924 #61B930

Accessibility & contrast

On white

8.32
#2E5817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2E5817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5817
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5817#FFFFFF#000000##FFFFFF
##2E58171.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500E
Deuteranopia (green-blind)
#564D1D
Tritanopia (blue-blind)
#2C554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e5817;
/* rgb */ color: rgb(46, 88, 23);
/* oklch */ color: oklch(41.5% 0.105 136.5);
Tailwind
colors: {
  custom: {
    50: '#6b8758',
    500: '#2e5817',
    950: '#000000',
  },
}
SCSS
$custom: #2e5817;
$custom-light: #6b8758;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5817",
  "rgb": {
    "r": 46,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 98.769,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41475,
    "c": 0.10531,
    "h": 136.5
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#2E5817
secondary
#723C8F
accent
#46E2AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5817

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

Preview Lab → · Contrast checker → · Palette generator →

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