#2D5215#2D5215

#2D5215 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.7% C 0.099 H 135.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2D5215
RGBrgb(45, 82, 21)
HSLhsl(96, 59%, 20%)
HSVhsv(96, 74%, 32%)
CMYKcmyk(45.1%, 0%, 74.4%, 67.8%)
CIE-LABlab(30.99, -25.28, 30.36)
CIE-LCHlch(30.99, 39.51, 129.78°)
OKLaboklab(39.66% -0.0704 0.0692)
OKLCHoklch(39.66% 0.099 135.5)
XYZxyz(4.2347, 6.6464, 1.7691)
Luminance0.0665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5215 #3A1552
analogous
#4C5215 #2D5215 #15521B
triadic
#2D5215 #152D52 #52152D
tetradic
#2D5215 #154C52 #3A1552 #521B15
square
#2D5215 #154C52 #3A1552 #521B15
split-complementary
#2D5215 #1B1552 #52154C
monochromatic
#0D1806 #122109 #2D5215 #488321 #62B32E

Accessibility & contrast

On white

9.02
#2D5215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5215
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5215#FFFFFF#000000##FFFFFF
##2D52151.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d5215;
/* rgb */ color: rgb(45, 82, 21);
/* oklch */ color: oklch(39.7% 0.099 135.5);
Tailwind
colors: {
  custom: {
    50: '#6a8356',
    500: '#2d5215',
    950: '#000000',
  },
}
SCSS
$custom: #2d5215;
$custom-light: #6a8356;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5215",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 96.393,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39658,
    "c": 0.09869,
    "h": 135.5
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#2D5215
secondary
#6A398A
accent
#45E2A5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5215

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

Preview Lab → · Contrast checker → · Palette generator →

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