#2E5315#2E5315

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

Color values

HEX#2E5315
RGBrgb(46, 83, 21)
HSLhsl(96, 60%, 20%)
HSVhsv(96, 75%, 33%)
CMYKcmyk(44.6%, 0%, 74.7%, 67.5%)
CIE-LABlab(31.40, -25.38, 30.80)
CIE-LCHlch(31.40, 39.91, 129.48°)
OKLaboklab(40.01% -0.0707 0.0701)
OKLCHoklch(40.01% 0.1 135.2)
XYZxyz(4.3552, 6.8213, 1.7965)
Luminance0.0682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5315 #3A1553
analogous
#4D5315 #2E5315 #15531B
triadic
#2E5315 #152E53 #53152E
tetradic
#2E5315 #154D53 #3A1553 #531B15
square
#2E5315 #154D53 #3A1553 #531B15
split-complementary
#2E5315 #1B1553 #53154D
monochromatic
#0E1806 #132209 #2E5315 #498421 #64B52E

Accessibility & contrast

On white

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

On black

2.36
#2E5315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2E5315#FFFFFF#000000##FFFFFF
##2E53151.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e5315;
/* rgb */ color: rgb(46, 83, 21);
/* oklch */ color: oklch(40.0% 0.100 135.2);
Tailwind
colors: {
  custom: {
    50: '#6a8356',
    500: '#2e5315',
    950: '#000000',
  },
}
SCSS
$custom: #2e5315;
$custom-light: #6a8356;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5315",
  "rgb": {
    "r": 46,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 95.806,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40007,
    "c": 0.09957,
    "h": 135.2
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#2E5315
secondary
#6A398B
accent
#45E3A3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2E5315

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

Preview Lab → · Contrast checker → · Palette generator →

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