#2D5217#2D5217

#2D5217 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.097 H 135.9°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2D5217
RGBrgb(45, 82, 23)
HSLhsl(98, 56%, 21%)
HSVhsv(98, 72%, 32%)
CMYKcmyk(45.1%, 0%, 72%, 67.8%)
CIE-LABlab(31.01, -25.09, 29.44)
CIE-LCHlch(31.01, 38.68, 130.44°)
OKLaboklab(39.68% -0.0697 0.0676)
OKLCHoklch(39.68% 0.097 135.9)
XYZxyz(4.2540, 6.6541, 1.8707)
Luminance0.0665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5217 #3C1752
analogous
#4A5217 #2D5217 #17521E
triadic
#2D5217 #172D52 #52172D
tetradic
#2D5217 #174A52 #3C1752 #521E17
square
#2D5217 #174A52 #3C1752 #521E17
split-complementary
#2D5217 #1E1752 #52174A
monochromatic
#0D1807 #13220A #2D5217 #478224 #61B232

Accessibility & contrast

On white

9.01
#2D5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5217
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5217#FFFFFF#000000##FFFFFF
##2D52171.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d5217;
/* rgb */ color: rgb(45, 82, 23);
/* oklch */ color: oklch(39.7% 0.097 135.9);
Tailwind
colors: {
  custom: {
    50: '#698357',
    500: '#2d5217',
    950: '#000000',
  },
}
SCSS
$custom: #2d5217;
$custom-light: #698357;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5217",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 97.627,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39678,
    "c": 0.09705,
    "h": 135.9
  },
  "luminance": 0.06654
}

Semantic roles & 50–950 ramp

primary
#2D5217
secondary
#6C3C89
accent
#48DFA7
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5217

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

Preview Lab → · Contrast checker → · Palette generator →

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