#2D5212#2D5212

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

Color values

HEX#2D5212
RGBrgb(45, 82, 18)
HSLhsl(95, 64%, 20%)
HSVhsv(95, 78%, 32%)
CMYKcmyk(45.1%, 0%, 78%, 67.8%)
CIE-LABlab(30.96, -25.54, 31.67)
CIE-LCHlch(30.96, 40.68, 128.88°)
OKLaboklab(39.63% -0.0713 0.0715)
OKLCHoklch(39.63% 0.101 134.9)
XYZxyz(4.2086, 6.6359, 1.6313)
Luminance0.0664 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5212 #371252
analogous
#4D5212 #2D5212 #125217
triadic
#2D5212 #122D52 #52122D
tetradic
#2D5212 #124D52 #371252 #521712
square
#2D5212 #124D52 #371252 #521712
split-complementary
#2D5212 #171252 #52124D
monochromatic
#0E1906 #112007 #2D5212 #49841D #64B628

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5212#FFFFFF#000000##FFFFFF
##2D52121.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)
#554B07
Deuteranopia (green-blind)
#504818
Tritanopia (blue-blind)
#2C4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d5212;
/* rgb */ color: rgb(45, 82, 18);
/* oklch */ color: oklch(39.6% 0.101 134.9);
Tailwind
colors: {
  custom: {
    50: '#6a8354',
    500: '#2d5212',
    950: '#000000',
  },
}
SCSS
$custom: #2d5212;
$custom-light: #6a8354;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5212",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 94.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39629,
    "c": 0.10096,
    "h": 134.9
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#2D5212
secondary
#67358B
accent
#41E7A1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5212

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

Preview Lab → · Contrast checker → · Palette generator →

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