#2D5418#2D5418

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

Color values

HEX#2D5418
RGBrgb(45, 84, 24)
HSLhsl(99, 56%, 21%)
HSVhsv(99, 71%, 33%)
CMYKcmyk(46.4%, 0%, 71.4%, 67.1%)
CIE-LABlab(31.73, -25.95, 29.73)
CIE-LCHlch(31.73, 39.46, 131.11°)
OKLaboklab(40.27% -0.0719 0.0683)
OKLCHoklch(40.27% 0.099 136.5)
XYZxyz(4.4173, 6.9642, 1.9755)
Luminance0.0696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5418 #3F1854
analogous
#4B5418 #2D5418 #185421
triadic
#2D5418 #182D54 #54182D
tetradic
#2D5418 #184B54 #3F1854 #542118
square
#2D5418 #184B54 #3F1854 #542118
split-complementary
#2D5418 #211854 #54184B
monochromatic
#0D1807 #13240A #2D5418 #468426 #60B333

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5418#FFFFFF#000000##FFFFFF
##2D54181.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)
#574D10
Deuteranopia (green-blind)
#52491D
Tritanopia (blue-blind)
#2B5148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d5418;
/* rgb */ color: rgb(45, 84, 24);
/* oklch */ color: oklch(40.3% 0.099 136.5);
Tailwind
colors: {
  custom: {
    50: '#6a8458',
    500: '#2d5418',
    950: '#000000',
  },
}
SCSS
$custom: #2d5418;
$custom-light: #6a8458;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5418",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 24
  },
  "hsl": {
    "h": 99,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.4027,
    "c": 0.0992,
    "h": 136.5
  },
  "luminance": 0.06964
}

Semantic roles & 50–950 ramp

primary
#2D5418
secondary
#703D8B
accent
#49DFAA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5418

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

Preview Lab → · Contrast checker → · Palette generator →

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