#2D5211#2D5211

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

Color values

HEX#2D5211
RGBrgb(45, 82, 17)
HSLhsl(94, 66%, 19%)
HSVhsv(94, 79%, 32%)
CMYKcmyk(45.1%, 0%, 79.3%, 67.8%)
CIE-LABlab(30.96, -25.62, 32.08)
CIE-LCHlch(30.96, 41.06, 128.61°)
OKLaboklab(39.62% -0.0716 0.0722)
OKLCHoklch(39.62% 0.102 134.8)
XYZxyz(4.2006, 6.6327, 1.5891)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5211 #361152
analogous
#4E5211 #2D5211 #115216
triadic
#2D5211 #112D52 #52112D
tetradic
#2D5211 #114E52 #361152 #521611
square
#2D5211 #114E52 #361152 #521611
split-complementary
#2D5211 #161152 #52114E
monochromatic
#0E1905 #111F06 #2D5211 #49851C #65B726

Accessibility & contrast

On white

9.03
#2D5211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5211
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5211#FFFFFF#000000##FFFFFF
##2D52111.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B06
Deuteranopia (green-blind)
#504817
Tritanopia (blue-blind)
#2C4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d5211;
/* rgb */ color: rgb(45, 82, 17);
/* oklch */ color: oklch(39.6% 0.102 134.8);
Tailwind
colors: {
  custom: {
    50: '#6a8354',
    500: '#2d5211',
    950: '#000000',
  },
}
SCSS
$custom: #2d5211;
$custom-light: #6a8354;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5211",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 94.154,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39621,
    "c": 0.10168,
    "h": 134.8
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#2D5211
secondary
#65348B
accent
#3FE9A0
background
#F6F8F5
surface
#EBEFE8
border
#C6CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5211

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

Preview Lab → · Contrast checker → · Palette generator →

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