#2D511A#2D511A

#2D511A is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.093 H 136.4°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2D511A
RGBrgb(45, 81, 26)
HSLhsl(99, 51%, 21%)
HSVhsv(99, 68%, 32%)
CMYKcmyk(44.4%, 0%, 67.9%, 68.2%)
CIE-LABlab(30.68, -24.29, 27.60)
CIE-LCHlch(30.68, 36.77, 131.35°)
OKLaboklab(39.42% -0.0672 0.0641)
OKLCHoklch(39.42% 0.093 136.4)
XYZxyz(4.2110, 6.5171, 2.0131)
Luminance0.0652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D511A #3E1A51
analogous
#48511A #2D511A #1A5122
triadic
#2D511A #1A2D51 #511A2D
tetradic
#2D511A #1A4851 #3E1A51 #51221A
square
#2D511A #1A4851 #3E1A51 #51221A
split-complementary
#2D511A #221A51 #511A48
monochromatic
#0D1707 #13230B #2D511A #477F29 #60AE38

Accessibility & contrast

On white

9.12
#2D511A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D511A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D511A
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D511A#FFFFFF#000000##FFFFFF
##2D511A1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A14
Deuteranopia (green-blind)
#4F471E
Tritanopia (blue-blind)
#2C4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d511a;
/* rgb */ color: rgb(45, 81, 26);
/* oklch */ color: oklch(39.4% 0.093 136.4);
Tailwind
colors: {
  custom: {
    50: '#698259',
    500: '#2d511a',
    950: '#000000',
  },
}
SCSS
$custom: #2d511a;
$custom-light: #698259;
$custom-dark: #000000;
JSON
{
  "hex": "#2d511a",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 26
  },
  "hsl": {
    "h": 99.273,
    "s": 51.402,
    "l": 20.98
  },
  "oklch": {
    "l": 0.39422,
    "c": 0.09288,
    "h": 136.4
  },
  "luminance": 0.06517
}

Semantic roles & 50–950 ramp

primary
#2D511A
secondary
#6E4087
accent
#4DDBAA
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D511A

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

Preview Lab → · Contrast checker → · Palette generator →

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