#2D4912#2D4912

#2D4912 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.0% C 0.088 H 132.5°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2D4912
RGBrgb(45, 73, 18)
HSLhsl(91, 60%, 18%)
HSVhsv(91, 75%, 29%)
CMYKcmyk(38.4%, 0%, 75.3%, 71.4%)
CIE-LABlab(27.75, -21.09, 28.37)
CIE-LCHlch(27.75, 35.34, 126.63°)
OKLaboklab(37.01% -0.0592 0.0646)
OKLCHoklch(37.01% 0.088 132.5)
XYZxyz(3.5739, 5.3665, 1.4197)
Luminance0.0537 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4912 #2E1249
analogous
#494912 #2D4912 #124912
triadic
#2D4912 #122D49 #49122D
tetradic
#2D4912 #124949 #2E1249 #491212
square
#2D4912 #124949 #2E1249 #491212
split-complementary
#2D4912 #121249 #491249
monochromatic
#0F1906 #0F1906 #2D4912 #4B7A1E #6AAB2A

Accessibility & contrast

On white

10.13
#2D4912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2D4912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4912
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4912#FFFFFF#000000##FFFFFF
##2D49121.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C430A
Deuteranopia (green-blind)
#484117
Tritanopia (blue-blind)
#2D463E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d4912;
/* rgb */ color: rgb(45, 73, 18);
/* oklch */ color: oklch(37.0% 0.088 132.5);
Tailwind
colors: {
  custom: {
    50: '#697c53',
    500: '#2d4912',
    950: '#000000',
  },
}
SCSS
$custom: #2d4912;
$custom-light: #697c53;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4912",
  "rgb": {
    "r": 45,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 90.545,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37007,
    "c": 0.0876,
    "h": 132.5
  },
  "luminance": 0.05367
}

Semantic roles & 50–950 ramp

primary
#2D4912
secondary
#5C3582
accent
#44E495
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2D4912

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

Preview Lab → · Contrast checker → · Palette generator →

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