#2D5417#2D5417

#2D5417 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.3% C 0.100 H 136.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2D5417
RGBrgb(45, 84, 23)
HSLhsl(98, 57%, 21%)
HSVhsv(98, 73%, 33%)
CMYKcmyk(46.4%, 0%, 72.6%, 67.1%)
CIE-LABlab(31.72, -26.05, 30.20)
CIE-LCHlch(31.72, 39.88, 130.78°)
OKLaboklab(40.26% -0.0723 0.0692)
OKLCHoklch(40.26% 0.1 136.3)
XYZxyz(4.4070, 6.9601, 1.9217)
Luminance0.0696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5417 #3E1754
analogous
#4B5417 #2D5417 #17541F
triadic
#2D5417 #172D54 #54172D
tetradic
#2D5417 #174B54 #3E1754 #541F17
square
#2D5417 #174B54 #3E1754 #541F17
split-complementary
#2D5417 #1F1754 #54174B
monochromatic
#0D1807 #13240A #2D5417 #478424 #60B431

Accessibility & contrast

On white

8.78
#2D5417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2D5417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5417
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5417#FFFFFF#000000##FFFFFF
##2D54171.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D0F
Deuteranopia (green-blind)
#52491C
Tritanopia (blue-blind)
#2B5148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d5417;
/* rgb */ color: rgb(45, 84, 23);
/* oklch */ color: oklch(40.3% 0.100 136.3);
Tailwind
colors: {
  custom: {
    50: '#6a8458',
    500: '#2d5417',
    950: '#000000',
  },
}
SCSS
$custom: #2d5417;
$custom-light: #6a8458;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5417",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 23
  },
  "hsl": {
    "h": 98.361,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.40259,
    "c": 0.10003,
    "h": 136.3
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#2D5417
secondary
#6E3C8B
accent
#48E0A9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5417

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

Preview Lab → · Contrast checker → · Palette generator →

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