#2D5318#2D5318

#2D5318 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.098 H 136.3°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2D5318
RGBrgb(45, 83, 24)
HSLhsl(99, 55%, 21%)
HSVhsv(99, 71%, 33%)
CMYKcmyk(45.8%, 0%, 71.1%, 67.5%)
CIE-LABlab(31.37, -25.47, 29.35)
CIE-LCHlch(31.37, 38.86, 130.95°)
OKLaboklab(39.98% -0.0706 0.0675)
OKLCHoklch(39.98% 0.098 136.3)
XYZxyz(4.3402, 6.8101, 1.9498)
Luminance0.0681 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5318 #3E1853
analogous
#4A5318 #2D5318 #185320
triadic
#2D5318 #182D53 #53182D
tetradic
#2D5318 #184A53 #3E1853 #532018
square
#2D5318 #184A53 #3E1853 #532018
split-complementary
#2D5318 #201853 #53184A
monochromatic
#0D1807 #13240A #2D5318 #478226 #60B233

Accessibility & contrast

On white

8.89
#2D5318 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D5318 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5318
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5318#FFFFFF#000000##FFFFFF
##2D53181.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C10
Deuteranopia (green-blind)
#51491D
Tritanopia (blue-blind)
#2C5047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d5318;
/* rgb */ color: rgb(45, 83, 24);
/* oklch */ color: oklch(40.0% 0.098 136.3);
Tailwind
colors: {
  custom: {
    50: '#698458',
    500: '#2d5318',
    950: '#000000',
  },
}
SCSS
$custom: #2d5318;
$custom-light: #698458;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5318",
  "rgb": {
    "r": 45,
    "g": 83,
    "b": 24
  },
  "hsl": {
    "h": 98.644,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3998,
    "c": 0.0977,
    "h": 136.3
  },
  "luminance": 0.0681
}

Semantic roles & 50–950 ramp

primary
#2D5318
secondary
#6E3D8A
accent
#49DEA9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5318

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

Preview Lab → · Contrast checker → · Palette generator →

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