#2D5512#2D5512

#2D5512 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.5% C 0.105 H 135.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2D5512
RGBrgb(45, 85, 18)
HSLhsl(96, 65%, 20%)
HSVhsv(96, 79%, 33%)
CMYKcmyk(47.1%, 0%, 78.8%, 66.7%)
CIE-LABlab(32.03, -26.95, 32.74)
CIE-LCHlch(32.03, 42.41, 129.46°)
OKLaboklab(40.5% -0.0751 0.0737)
OKLCHoklch(40.5% 0.105 135.5)
XYZxyz(4.4398, 7.0983, 1.7083)
Luminance0.0710 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5512 #3A1255
analogous
#4E5512 #2D5512 #125518
triadic
#2D5512 #122D55 #55122D
tetradic
#2D5512 #124E55 #3A1255 #551812
square
#2D5512 #124E55 #3A1255 #551812
split-complementary
#2D5512 #181255 #55124E
monochromatic
#0D1905 #122207 #2D5512 #48881D #62BA27

Accessibility & contrast

On white

8.68
#2D5512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2D5512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5512
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5512#FFFFFF#000000##FFFFFF
##2D55121.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D06
Deuteranopia (green-blind)
#534A19
Tritanopia (blue-blind)
#2C5248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d5512;
/* rgb */ color: rgb(45, 85, 18);
/* oklch */ color: oklch(40.5% 0.105 135.5);
Tailwind
colors: {
  custom: {
    50: '#6a8555',
    500: '#2d5512',
    950: '#000000',
  },
}
SCSS
$custom: #2d5512;
$custom-light: #6a8555;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5512",
  "rgb": {
    "r": 45,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 95.821,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40503,
    "c": 0.10526,
    "h": 135.5
  },
  "luminance": 0.07099
}

Semantic roles & 50–950 ramp

primary
#2D5512
secondary
#6A358E
accent
#40E8A4
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5512

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

Preview Lab → · Contrast checker → · Palette generator →

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