#2D5916#2D5916

#2D5916 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.7% C 0.108 H 136.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2D5916
RGBrgb(45, 89, 22)
HSLhsl(99, 60%, 22%)
HSVhsv(99, 75%, 35%)
CMYKcmyk(49.4%, 0%, 75.3%, 65.1%)
CIE-LABlab(33.48, -28.46, 32.50)
CIE-LCHlch(33.48, 43.21, 131.21°)
OKLaboklab(41.7% -0.0789 0.0739)
OKLCHoklch(41.7% 0.108 136.9)
XYZxyz(4.7992, 7.7603, 2.0039)
Luminance0.0776 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5916 #421659
analogous
#4F5916 #2D5916 #165921
triadic
#2D5916 #162D59 #59162D
tetradic
#2D5916 #164F59 #421659 #592116
square
#2D5916 #164F59 #421659 #592116
split-complementary
#2D5916 #211659 #59164F
monochromatic
#0C1906 #14280A #2D5916 #468A22 #5FBB2E

Accessibility & contrast

On white

8.23
#2D5916 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D5916 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5916
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5916#FFFFFF#000000##FFFFFF
##2D59161.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510C
Deuteranopia (green-blind)
#564D1C
Tritanopia (blue-blind)
#2B564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d5916;
/* rgb */ color: rgb(45, 89, 22);
/* oklch */ color: oklch(41.7% 0.108 136.9);
Tailwind
colors: {
  custom: {
    50: '#6b8858',
    500: '#2d5916',
    950: '#000000',
  },
}
SCSS
$custom: #2d5916;
$custom-light: #6b8858;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5916",
  "rgb": {
    "r": 45,
    "g": 89,
    "b": 22
  },
  "hsl": {
    "h": 99.403,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41702,
    "c": 0.10808,
    "h": 136.9
  },
  "luminance": 0.07761
}

Semantic roles & 50–950 ramp

primary
#2D5916
secondary
#733B90
accent
#44E4AD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5916

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

Preview Lab → · Contrast checker → · Palette generator →

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