#2D4812#2D4812

#2D4812 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.7% C 0.086 H 132.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2D4812
RGBrgb(45, 72, 18)
HSLhsl(90, 60%, 18%)
HSVhsv(90, 75%, 28%)
CMYKcmyk(37.5%, 0%, 75%, 71.8%)
CIE-LABlab(27.40, -20.57, 27.99)
CIE-LCHlch(27.40, 34.74, 126.32°)
OKLaboklab(36.72% -0.0578 0.0638)
OKLCHoklch(36.72% 0.086 132.2)
XYZxyz(3.5087, 5.2362, 1.3980)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4812 #2D1248
analogous
#484812 #2D4812 #124812
triadic
#2D4812 #122D48 #48122D
tetradic
#2D4812 #124848 #2D1248 #481212
square
#2D4812 #124848 #2D1248 #481212
split-complementary
#2D4812 #121248 #481248
monochromatic
#0F1806 #0F1806 #2D4812 #4C791E #6AAA2A

Accessibility & contrast

On white

10.26
#2D4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4812
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4812#FFFFFF#000000##FFFFFF
##2D48121.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420A
Deuteranopia (green-blind)
#484017
Tritanopia (blue-blind)
#2E453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d4812;
/* rgb */ color: rgb(45, 72, 18);
/* oklch */ color: oklch(36.7% 0.086 132.2);
Tailwind
colors: {
  custom: {
    50: '#687b53',
    500: '#2d4812',
    950: '#000000',
  },
}
SCSS
$custom: #2d4812;
$custom-light: #687b53;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4812",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36716,
    "c": 0.08608,
    "h": 132.2
  },
  "luminance": 0.05236
}

Semantic roles & 50–950 ramp

primary
#2D4812
secondary
#5B3581
accent
#45E394
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4812

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

Preview Lab → · Contrast checker → · Palette generator →

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