#2D4712#2D4712

#2D4712 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.4% C 0.085 H 131.8°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#2D4712
RGBrgb(45, 71, 18)
HSLhsl(89, 60%, 17%)
HSVhsv(89, 75%, 28%)
CMYKcmyk(36.6%, 0%, 74.6%, 72.2%)
CIE-LABlab(27.04, -20.05, 27.61)
CIE-LCHlch(27.04, 34.13, 125.99°)
OKLaboklab(36.43% -0.0564 0.063)
OKLCHoklch(36.43% 0.085 131.8)
XYZxyz(3.4446, 5.1079, 1.3766)
Luminance0.0511 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4712 #2C1247
analogous
#474712 #2D4712 #124712
triadic
#2D4712 #122D47 #47122D
tetradic
#2D4712 #124747 #2C1247 #471212
square
#2D4712 #124747 #2C1247 #471212
split-complementary
#2D4712 #121247 #471247
monochromatic
#0F1806 #0F1806 #2D4712 #4C781E #6BA92B

Accessibility & contrast

On white

10.39
#2D4712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D4712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4712
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4712#FFFFFF#000000##FFFFFF
##2D47121.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410B
Deuteranopia (green-blind)
#473F16
Tritanopia (blue-blind)
#2E443C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d4712;
/* rgb */ color: rgb(45, 71, 18);
/* oklch */ color: oklch(36.4% 0.085 131.8);
Tailwind
colors: {
  custom: {
    50: '#687a53',
    500: '#2d4712',
    950: '#000000',
  },
}
SCSS
$custom: #2d4712;
$custom-light: #687a53;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4712",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 18
  },
  "hsl": {
    "h": 89.434,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36425,
    "c": 0.08454,
    "h": 131.8
  },
  "luminance": 0.05108
}

Semantic roles & 50–950 ramp

primary
#2D4712
secondary
#5A3580
accent
#45E392
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4712

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

Preview Lab → · Contrast checker → · Palette generator →

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