#2D5D0F#2D5D0F

#2D5D0F is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.8% C 0.118 H 136.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2D5D0F
RGBrgb(45, 93, 15)
HSLhsl(97, 72%, 21%)
HSVhsv(97, 84%, 36%)
CMYKcmyk(51.6%, 0%, 83.9%, 63.5%)
CIE-LABlab(34.84, -30.78, 36.62)
CIE-LCHlch(34.84, 47.84, 130.05°)
OKLaboklab(42.81% -0.0857 0.0814)
OKLCHoklch(42.81% 0.118 136.5)
XYZxyz(5.0826, 8.4207, 1.8094)
Luminance0.0842 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5D0F #3F0F5D
analogous
#545D0F #2D5D0F #0F5D18
triadic
#2D5D0F #0F2D5D #5D0F2D
tetradic
#2D5D0F #0F545D #3F0F5D #5D180F
square
#2D5D0F #0F545D #3F0F5D #5D180F
split-complementary
#2D5D0F #180F5D #5D0F54
monochromatic
#0D1A04 #132806 #2D5D0F #469217 #60C620

Accessibility & contrast

On white

7.82
#2D5D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2D5D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5D0F
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5D0F#FFFFFF#000000##FFFFFF
##2D5D0F1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#5A5018
Tritanopia (blue-blind)
#2B594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d5d0f;
/* rgb */ color: rgb(45, 93, 15);
/* oklch */ color: oklch(42.8% 0.118 136.5);
Tailwind
colors: {
  custom: {
    50: '#6c8b55',
    500: '#2d5d0f',
    950: '#000000',
  },
}
SCSS
$custom: #2d5d0f;
$custom-light: #6c8b55;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5d0f",
  "rgb": {
    "r": 45,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 96.923,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42808,
    "c": 0.11815,
    "h": 136.5
  },
  "luminance": 0.08421
}

Semantic roles & 50–950 ramp

primary
#2D5D0F
secondary
#703196
accent
#39EFA9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D5D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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