#2D4715#2D4715

#2D4715 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.5% C 0.082 H 132.5°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2D4715
RGBrgb(45, 71, 21)
HSLhsl(91, 54%, 18%)
HSVhsv(91, 70%, 28%)
CMYKcmyk(36.6%, 0%, 70.4%, 72.2%)
CIE-LABlab(27.07, -19.76, 26.16)
CIE-LCHlch(27.07, 32.79, 127.07°)
OKLaboklab(36.46% -0.0553 0.0604)
OKLCHoklch(36.46% 0.082 132.5)
XYZxyz(3.4707, 5.1184, 1.5144)
Luminance0.0512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4715 #2F1547
analogous
#464715 #2D4715 #154716
triadic
#2D4715 #152D47 #47152D
tetradic
#2D4715 #154647 #2F1547 #471615
square
#2D4715 #154647 #2F1547 #471615
split-complementary
#2D4715 #161547 #471546
monochromatic
#0F1807 #0F1807 #2D4715 #4B7623 #69A531

Accessibility & contrast

On white

10.38
#2D4715 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4715
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4715#FFFFFF#000000##FFFFFF
##2D47151.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410F
Deuteranopia (green-blind)
#473F19
Tritanopia (blue-blind)
#2D443D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d4715;
/* rgb */ color: rgb(45, 71, 21);
/* oklch */ color: oklch(36.5% 0.082 132.5);
Tailwind
colors: {
  custom: {
    50: '#687a55',
    500: '#2d4715',
    950: '#000000',
  },
}
SCSS
$custom: #2d4715;
$custom-light: #687a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4715",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 21
  },
  "hsl": {
    "h": 91.2,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.36458,
    "c": 0.08187,
    "h": 132.5
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#2D4715
secondary
#5D397F
accent
#4ADE97
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4715

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

Preview Lab → · Contrast checker → · Palette generator →

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