#2D4817#2D4817

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

Color values

HEX#2D4817
RGBrgb(45, 72, 23)
HSLhsl(93, 52%, 19%)
HSVhsv(93, 68%, 28%)
CMYKcmyk(37.5%, 0%, 68.1%, 71.8%)
CIE-LABlab(27.45, -20.07, 25.54)
CIE-LCHlch(27.45, 32.49, 128.16°)
OKLaboklab(36.77% -0.056 0.0593)
OKLCHoklch(36.77% 0.082 133.3)
XYZxyz(3.5541, 5.2543, 1.6374)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4817 #321748
analogous
#454817 #2D4817 #174819
triadic
#2D4817 #172D48 #48172D
tetradic
#2D4817 #174548 #321748 #481917
square
#2D4817 #174548 #321748 #481917
split-complementary
#2D4817 #191748 #481745
monochromatic
#0E1707 #101A08 #2D4817 #4A7626 #67A535

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D4817#FFFFFF#000000##FFFFFF
##2D48171.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)
#4B4211
Deuteranopia (green-blind)
#47401B
Tritanopia (blue-blind)
#2D453E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d4817;
/* rgb */ color: rgb(45, 72, 23);
/* oklch */ color: oklch(36.8% 0.082 133.3);
Tailwind
colors: {
  custom: {
    50: '#687b56',
    500: '#2d4817',
    950: '#000000',
  },
}
SCSS
$custom: #2d4817;
$custom-light: #687b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4817",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 23
  },
  "hsl": {
    "h": 93.061,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.36773,
    "c": 0.08156,
    "h": 133.3
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#2D4817
secondary
#613C7F
accent
#4DDB9B
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2D4817

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

Preview Lab → · Contrast checker → · Palette generator →

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