#2D5A15#2D5A15

#2D5A15 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.0% C 0.110 H 136.9°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2D5A15
RGBrgb(45, 90, 21)
HSLhsl(99, 62%, 22%)
HSVhsv(99, 77%, 35%)
CMYKcmyk(50%, 0%, 76.7%, 64.7%)
CIE-LABlab(33.82, -29.00, 33.29)
CIE-LCHlch(33.82, 44.15, 131.06°)
OKLaboklab(41.98% -0.0805 0.0754)
OKLCHoklch(41.98% 0.11 136.9)
XYZxyz(4.8736, 7.9240, 1.9820)
Luminance0.0792 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5A15 #42155A
analogous
#505A15 #2D5A15 #155A1F
triadic
#2D5A15 #152D5A #5A152D
tetradic
#2D5A15 #15505A #42155A #5A1F15
square
#2D5A15 #15505A #42155A #5A1F15
split-complementary
#2D5A15 #1F155A #5A1550
monochromatic
#0C1906 #142809 #2D5A15 #468C21 #5FBD2C

Accessibility & contrast

On white

8.12
#2D5A15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5A15
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5A15#FFFFFF#000000##FFFFFF
##2D5A151.008.122.588.12
#FFFFFF8.121.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5209
Deuteranopia (green-blind)
#574E1C
Tritanopia (blue-blind)
#2B574C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5a15;
/* rgb */ color: rgb(45, 90, 21);
/* oklch */ color: oklch(42.0% 0.110 136.9);
Tailwind
colors: {
  custom: {
    50: '#6b8957',
    500: '#2d5a15',
    950: '#000000',
  },
}
SCSS
$custom: #2d5a15;
$custom-light: #6b8957;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5a15",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 21
  },
  "hsl": {
    "h": 99.13,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41983,
    "c": 0.11023,
    "h": 136.9
  },
  "luminance": 0.07924
}

Semantic roles & 50–950 ramp

primary
#2D5A15
secondary
#733992
accent
#43E5AD
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5A15

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

Preview Lab → · Contrast checker → · Palette generator →

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