#2D5A11#2D5A11

#2D5A11 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 41.9% C 0.113 H 136.3°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2D5A11
RGBrgb(45, 90, 17)
HSLhsl(97, 68%, 21%)
HSVhsv(97, 81%, 35%)
CMYKcmyk(50%, 0%, 81.1%, 64.7%)
CIE-LABlab(33.80, -29.32, 34.89)
CIE-LCHlch(33.80, 45.57, 130.04°)
OKLaboklab(41.95% -0.0816 0.078)
OKLCHoklch(41.95% 0.113 136.3)
XYZxyz(4.8394, 7.9104, 1.8021)
Luminance0.0791 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5A11 #3E115A
analogous
#515A11 #2D5A11 #115A19
triadic
#2D5A11 #112D5A #5A112D
tetradic
#2D5A11 #11515A #3E115A #5A1911
square
#2D5A11 #11515A #3E115A #5A1911
split-complementary
#2D5A11 #19115A #5A1151
monochromatic
#0D1A05 #132707 #2D5A11 #478D1B #60C124

Accessibility & contrast

On white

8.13
#2D5A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2D5A11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5A11
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5A11#FFFFFF#000000##FFFFFF
##2D5A111.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5203
Deuteranopia (green-blind)
#574E19
Tritanopia (blue-blind)
#2B564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d5a11;
/* rgb */ color: rgb(45, 90, 17);
/* oklch */ color: oklch(41.9% 0.113 136.3);
Tailwind
colors: {
  custom: {
    50: '#6b8955',
    500: '#2d5a11',
    950: '#000000',
  },
}
SCSS
$custom: #2d5a11;
$custom-light: #6b8955;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5a11",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 96.986,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.4195,
    "c": 0.11291,
    "h": 136.3
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#2D5A11
secondary
#6E3493
accent
#3DEBA8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5A11

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

Preview Lab → · Contrast checker → · Palette generator →

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