#2E5215#2E5215

#2E5215 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.098 H 135.0°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2E5215
RGBrgb(46, 82, 21)
HSLhsl(95, 59%, 20%)
HSVhsv(95, 74%, 32%)
CMYKcmyk(43.9%, 0%, 74.4%, 67.8%)
CIE-LABlab(31.04, -24.89, 30.43)
CIE-LCHlch(31.04, 39.31, 129.28°)
OKLaboklab(39.72% -0.0694 0.0693)
OKLCHoklch(39.72% 0.098 135)
XYZxyz(4.2793, 6.6693, 1.7712)
Luminance0.0667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5215 #391552
analogous
#4C5215 #2E5215 #15521B
triadic
#2E5215 #152E52 #52152E
tetradic
#2E5215 #154C52 #391552 #521B15
square
#2E5215 #154C52 #391552 #521B15
split-complementary
#2E5215 #1B1552 #52154C
monochromatic
#0E1806 #132109 #2E5215 #498321 #65B32E

Accessibility & contrast

On white

9.00
#2E5215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2E5215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5215
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5215#FFFFFF#000000##FFFFFF
##2E52151.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0C
Deuteranopia (green-blind)
#50481A
Tritanopia (blue-blind)
#2D4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e5215;
/* rgb */ color: rgb(46, 82, 21);
/* oklch */ color: oklch(39.7% 0.098 135.0);
Tailwind
colors: {
  custom: {
    50: '#6a8356',
    500: '#2e5215',
    950: '#000000',
  },
}
SCSS
$custom: #2e5215;
$custom-light: #6a8356;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5215",
  "rgb": {
    "r": 46,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 95.41,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39716,
    "c": 0.09809,
    "h": 135
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#2E5215
secondary
#69398A
accent
#45E2A2
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2E5215

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

Preview Lab → · Contrast checker → · Palette generator →

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