#2D5415#2D5415

#2D5415 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.2% C 0.102 H 135.9°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2D5415
RGBrgb(45, 84, 21)
HSLhsl(97, 60%, 21%)
HSVhsv(97, 75%, 33%)
CMYKcmyk(46.4%, 0%, 75%, 67.1%)
CIE-LABlab(31.70, -26.23, 31.10)
CIE-LCHlch(31.70, 40.69, 130.14°)
OKLaboklab(40.24% -0.0729 0.0708)
OKLCHoklch(40.24% 0.102 135.9)
XYZxyz(4.3878, 6.9524, 1.8201)
Luminance0.0695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5415 #3C1554
analogous
#4C5415 #2D5415 #15541C
triadic
#2D5415 #152D54 #54152D
tetradic
#2D5415 #154C54 #3C1554 #541C15
square
#2D5415 #154C54 #3C1554 #541C15
split-complementary
#2D5415 #1C1554 #54154C
monochromatic
#0D1806 #132309 #2D5415 #478521 #61B62D

Accessibility & contrast

On white

8.78
#2D5415 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2D5415 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5415
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5415#FFFFFF#000000##FFFFFF
##2D54151.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D0C
Deuteranopia (green-blind)
#52491B
Tritanopia (blue-blind)
#2C5147
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d5415;
/* rgb */ color: rgb(45, 84, 21);
/* oklch */ color: oklch(40.2% 0.102 135.9);
Tailwind
colors: {
  custom: {
    50: '#6a8456',
    500: '#2d5415',
    950: '#000000',
  },
}
SCSS
$custom: #2d5415;
$custom-light: #6a8456;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5415",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 21
  },
  "hsl": {
    "h": 97.143,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40239,
    "c": 0.10162,
    "h": 135.9
  },
  "luminance": 0.06953
}

Semantic roles & 50–950 ramp

primary
#2D5415
secondary
#6C398C
accent
#45E3A7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5415

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

Preview Lab → · Contrast checker → · Palette generator →

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