#2D5016#2D5016

#2D5016 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.1% C 0.095 H 135.3°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2D5016
RGBrgb(45, 80, 22)
HSLhsl(96, 57%, 20%)
HSVhsv(96, 73%, 31%)
CMYKcmyk(43.7%, 0%, 72.5%, 68.6%)
CIE-LABlab(30.29, -24.22, 29.15)
CIE-LCHlch(30.29, 37.89, 129.72°)
OKLaboklab(39.09% -0.0674 0.0668)
OKLCHoklch(39.09% 0.095 135.3)
XYZxyz(4.0956, 6.3529, 1.7693)
Luminance0.0635 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5016 #391650
analogous
#4A5016 #2D5016 #16501C
triadic
#2D5016 #162D50 #50162D
tetradic
#2D5016 #164A50 #391650 #501C16
square
#2D5016 #164A50 #391650 #501C16
split-complementary
#2D5016 #1C1650 #50164A
monochromatic
#0D1807 #122009 #2D5016 #488023 #63B030

Accessibility & contrast

On white

9.25
#2D5016 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D5016 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5016
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5016#FFFFFF#000000##FFFFFF
##2D50161.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490E
Deuteranopia (green-blind)
#4E461B
Tritanopia (blue-blind)
#2C4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d5016;
/* rgb */ color: rgb(45, 80, 22);
/* oklch */ color: oklch(39.1% 0.095 135.3);
Tailwind
colors: {
  custom: {
    50: '#698156',
    500: '#2d5016',
    950: '#000000',
  },
}
SCSS
$custom: #2d5016;
$custom-light: #698156;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5016",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 22
  },
  "hsl": {
    "h": 96.207,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.39086,
    "c": 0.09489,
    "h": 135.3
  },
  "luminance": 0.06353
}

Semantic roles & 50–950 ramp

primary
#2D5016
secondary
#693A87
accent
#48E0A4
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D5016

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

Preview Lab → · Contrast checker → · Palette generator →

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