#2D5B15#2D5B15

#2D5B15 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.112 H 137.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2D5B15
RGBrgb(45, 91, 21)
HSLhsl(99, 63%, 22%)
HSVhsv(99, 77%, 36%)
CMYKcmyk(50.5%, 0%, 76.9%, 64.3%)
CIE-LABlab(34.18, -29.46, 33.65)
CIE-LCHlch(34.18, 44.72, 131.19°)
OKLaboklab(42.27% -0.0817 0.0761)
OKLCHoklch(42.27% 0.112 137)
XYZxyz(4.9585, 8.0939, 2.0103)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5B15 #43155B
analogous
#505B15 #2D5B15 #155B20
triadic
#2D5B15 #152D5B #5B152D
tetradic
#2D5B15 #15505B #43155B #5B2015
square
#2D5B15 #15505B #43155B #5B2015
split-complementary
#2D5B15 #20155B #5B1550
monochromatic
#0C1906 #14290A #2D5B15 #468D20 #5EBE2C

Accessibility & contrast

On white

8.02
#2D5B15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5B15
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5B15#FFFFFF#000000##FFFFFF
##2D5B151.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5309
Deuteranopia (green-blind)
#584F1C
Tritanopia (blue-blind)
#2A574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5b15;
/* rgb */ color: rgb(45, 91, 21);
/* oklch */ color: oklch(42.3% 0.112 137.0);
Tailwind
colors: {
  custom: {
    50: '#6b8a57',
    500: '#2d5b15',
    950: '#000000',
  },
}
SCSS
$custom: #2d5b15;
$custom-light: #6b8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5b15",
  "rgb": {
    "r": 45,
    "g": 91,
    "b": 21
  },
  "hsl": {
    "h": 99.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42273,
    "c": 0.11163,
    "h": 137
  },
  "luminance": 0.08094
}

Semantic roles & 50–950 ramp

primary
#2D5B15
secondary
#743992
accent
#42E6AE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5B15

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

Preview Lab → · Contrast checker → · Palette generator →

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