#2D5817#2D5817

#2D5817 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.4% C 0.106 H 136.9°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#2D5817
RGBrgb(45, 88, 23)
HSLhsl(100, 59%, 22%)
HSVhsv(100, 74%, 35%)
CMYKcmyk(48.9%, 0%, 73.9%, 65.5%)
CIE-LABlab(33.13, -27.92, 31.70)
CIE-LCHlch(33.13, 42.24, 131.37°)
OKLaboklab(41.42% -0.0773 0.0723)
OKLCHoklch(41.42% 0.106 136.9)
XYZxyz(4.7264, 7.5989, 2.0281)
Luminance0.0760 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5817 #421758
analogous
#4E5817 #2D5817 #175821
triadic
#2D5817 #172D58 #58172D
tetradic
#2D5817 #174E58 #421758 #582117
square
#2D5817 #174E58 #421758 #582117
split-complementary
#2D5817 #211758 #58174E
monochromatic
#0C1806 #14270A #2D5817 #468924 #5FB930

Accessibility & contrast

On white

8.33
#2D5817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D5817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5817
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5817#FFFFFF#000000##FFFFFF
##2D58171.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500E
Deuteranopia (green-blind)
#554D1D
Tritanopia (blue-blind)
#2B554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d5817;
/* rgb */ color: rgb(45, 88, 23);
/* oklch */ color: oklch(41.4% 0.106 136.9);
Tailwind
colors: {
  custom: {
    50: '#6a8758',
    500: '#2d5817',
    950: '#000000',
  },
}
SCSS
$custom: #2d5817;
$custom-light: #6a8758;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5817",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 99.692,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41421,
    "c": 0.10589,
    "h": 136.9
  },
  "luminance": 0.07599
}

Semantic roles & 50–950 ramp

primary
#2D5817
secondary
#733C8F
accent
#46E2AD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5817

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

Preview Lab → · Contrast checker → · Palette generator →

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