#2E5815#2E5815

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

Color values

HEX#2E5815
RGBrgb(46, 88, 21)
HSLhsl(98, 61%, 21%)
HSVhsv(98, 76%, 35%)
CMYKcmyk(47.7%, 0%, 76.1%, 65.5%)
CIE-LABlab(33.17, -27.73, 32.63)
CIE-LCHlch(33.17, 42.82, 130.35°)
OKLaboklab(41.46% -0.0771 0.074)
OKLCHoklch(41.46% 0.107 136.2)
XYZxyz(4.7517, 7.6141, 1.9286)
Luminance0.0761 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5815 #3F1558
analogous
#505815 #2E5815 #15581E
triadic
#2E5815 #152E58 #58152E
tetradic
#2E5815 #155058 #3F1558 #581E15
square
#2E5815 #155058 #3F1558 #581E15
split-complementary
#2E5815 #1E1558 #581550
monochromatic
#0D1906 #142709 #2E5815 #488921 #62BB2D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E5815#FFFFFF#000000##FFFFFF
##2E58151.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)
#5B500A
Deuteranopia (green-blind)
#564D1B
Tritanopia (blue-blind)
#2C554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e5815;
/* rgb */ color: rgb(46, 88, 21);
/* oklch */ color: oklch(41.5% 0.107 136.2);
Tailwind
colors: {
  custom: {
    50: '#6b8757',
    500: '#2e5815',
    950: '#000000',
  },
}
SCSS
$custom: #2e5815;
$custom-light: #6b8757;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5815",
  "rgb": {
    "r": 46,
    "g": 88,
    "b": 21
  },
  "hsl": {
    "h": 97.612,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41456,
    "c": 0.10682,
    "h": 136.2
  },
  "luminance": 0.07614
}

Semantic roles & 50–950 ramp

primary
#2E5815
secondary
#6F3990
accent
#43E5A8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5815

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

Preview Lab → · Contrast checker → · Palette generator →

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