#2E5915#2E5915

#2E5915 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.7% C 0.108 H 136.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2E5915
RGBrgb(46, 89, 21)
HSLhsl(98, 62%, 22%)
HSVhsv(98, 76%, 35%)
CMYKcmyk(48.3%, 0%, 76.4%, 65.1%)
CIE-LABlab(33.52, -28.19, 33.00)
CIE-LCHlch(33.52, 43.40, 130.51°)
OKLaboklab(41.75% -0.0783 0.0747)
OKLCHoklch(41.75% 0.108 136.4)
XYZxyz(4.8343, 7.7794, 1.9562)
Luminance0.0778 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5915 #401559
analogous
#505915 #2E5915 #15591E
triadic
#2E5915 #152E59 #59152E
tetradic
#2E5915 #155059 #401559 #591E15
square
#2E5915 #155059 #401559 #591E15
split-complementary
#2E5915 #1E1559 #591550
monochromatic
#0D1906 #142709 #2E5915 #488B21 #61BC2C

Accessibility & contrast

On white

8.22
#2E5915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2E5915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5915
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5915#FFFFFF#000000##FFFFFF
##2E59151.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510A
Deuteranopia (green-blind)
#574D1B
Tritanopia (blue-blind)
#2C564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e5915;
/* rgb */ color: rgb(46, 89, 21);
/* oklch */ color: oklch(41.7% 0.108 136.4);
Tailwind
colors: {
  custom: {
    50: '#6b8857',
    500: '#2e5915',
    950: '#000000',
  },
}
SCSS
$custom: #2e5915;
$custom-light: #6b8857;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5915",
  "rgb": {
    "r": 46,
    "g": 89,
    "b": 21
  },
  "hsl": {
    "h": 97.941,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.10825,
    "h": 136.4
  },
  "luminance": 0.0778
}

Semantic roles & 50–950 ramp

primary
#2E5915
secondary
#703991
accent
#43E5A9
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5915

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

Preview Lab → · Contrast checker → · Palette generator →

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