#2D5B0F#2D5B0F

#2D5B0F is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.2% C 0.115 H 136.2°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#2D5B0F
RGBrgb(45, 91, 15)
HSLhsl(96, 72%, 21%)
HSVhsv(96, 84%, 36%)
CMYKcmyk(50.5%, 0%, 83.5%, 64.3%)
CIE-LABlab(34.14, -29.90, 35.95)
CIE-LCHlch(34.14, 46.76, 129.75°)
OKLaboklab(42.23% -0.0833 0.0799)
OKLCHoklch(42.23% 0.115 136.2)
XYZxyz(4.9094, 8.0742, 1.7516)
Luminance0.0808 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5B0F #3D0F5B
analogous
#535B0F #2D5B0F #0F5B17
triadic
#2D5B0F #0F2D5B #5B0F2D
tetradic
#2D5B0F #0F535B #3D0F5B #5B170F
square
#2D5B0F #0F535B #3D0F5B #5B170F
split-complementary
#2D5B0F #170F5B #5B0F53
monochromatic
#0D1A04 #132606 #2D5B0F #479018 #61C420

Accessibility & contrast

On white

8.03
#2D5B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2D5B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5B0F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5B0F#FFFFFF#000000##FFFFFF
##2D5B0F1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5300
Deuteranopia (green-blind)
#584F17
Tritanopia (blue-blind)
#2B574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5b0f;
/* rgb */ color: rgb(45, 91, 15);
/* oklch */ color: oklch(42.2% 0.115 136.2);
Tailwind
colors: {
  custom: {
    50: '#6b8a54',
    500: '#2d5b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2d5b0f;
$custom-light: #6b8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5b0f",
  "rgb": {
    "r": 45,
    "g": 91,
    "b": 15
  },
  "hsl": {
    "h": 96.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42227,
    "c": 0.11546,
    "h": 136.2
  },
  "luminance": 0.08075
}

Semantic roles & 50–950 ramp

primary
#2D5B0F
secondary
#6D3195
accent
#39EEA7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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