#2D4816#2D4816

#2D4816 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.8% C 0.083 H 133.1°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2D4816
RGBrgb(45, 72, 22)
HSLhsl(92, 53%, 18%)
HSVhsv(92, 69%, 28%)
CMYKcmyk(37.5%, 0%, 69.4%, 71.8%)
CIE-LABlab(27.44, -20.18, 26.05)
CIE-LCHlch(27.44, 32.95, 127.76°)
OKLaboklab(36.76% -0.0564 0.0603)
OKLCHoklch(36.76% 0.083 133.1)
XYZxyz(3.5443, 5.2504, 1.5856)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4816 #311648
analogous
#464816 #2D4816 #164818
triadic
#2D4816 #162D48 #48162D
tetradic
#2D4816 #164648 #311648 #481816
square
#2D4816 #164648 #311648 #481816
split-complementary
#2D4816 #181648 #481646
monochromatic
#0F1707 #101908 #2D4816 #4A7724 #68A633

Accessibility & contrast

On white

10.24
#2D4816 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D4816 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4816
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4816#FFFFFF#000000##FFFFFF
##2D48161.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4210
Deuteranopia (green-blind)
#47401A
Tritanopia (blue-blind)
#2D453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d4816;
/* rgb */ color: rgb(45, 72, 22);
/* oklch */ color: oklch(36.8% 0.083 133.1);
Tailwind
colors: {
  custom: {
    50: '#687b56',
    500: '#2d4816',
    950: '#000000',
  },
}
SCSS
$custom: #2d4816;
$custom-light: #687b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4816",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 22
  },
  "hsl": {
    "h": 92.4,
    "s": 53.191,
    "l": 18.431
  },
  "oklch": {
    "l": 0.36761,
    "c": 0.08252,
    "h": 133.1
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#2D4816
secondary
#603A7F
accent
#4BDD9A
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4816

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

Preview Lab → · Contrast checker → · Palette generator →

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