#2D5B11#2D5B11

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

Color values

HEX#2D5B11
RGBrgb(45, 91, 17)
HSLhsl(97, 69%, 21%)
HSVhsv(97, 81%, 36%)
CMYKcmyk(50.5%, 0%, 81.3%, 64.3%)
CIE-LABlab(34.15, -29.76, 35.23)
CIE-LCHlch(34.15, 46.12, 130.19°)
OKLaboklab(42.24% -0.0828 0.0788)
OKLCHoklch(42.24% 0.114 136.4)
XYZxyz(4.9243, 8.0802, 1.8304)
Luminance0.0808 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5B11 #3F115B
analogous
#525B11 #2D5B11 #115B1A
triadic
#2D5B11 #112D5B #5B112D
tetradic
#2D5B11 #11525B #3F115B #5B1A11
square
#2D5B11 #11525B #3F115B #5B1A11
split-complementary
#2D5B11 #1A115B #5B1152
monochromatic
#0D1A05 #132707 #2D5B11 #468F1B #60C224

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5B11#FFFFFF#000000##FFFFFF
##2D5B111.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)
#5E5303
Deuteranopia (green-blind)
#584F19
Tritanopia (blue-blind)
#2B574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5b11;
/* rgb */ color: rgb(45, 91, 17);
/* oklch */ color: oklch(42.2% 0.114 136.4);
Tailwind
colors: {
  custom: {
    50: '#6b8a55',
    500: '#2d5b11',
    950: '#000000',
  },
}
SCSS
$custom: #2d5b11;
$custom-light: #6b8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5b11",
  "rgb": {
    "r": 45,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 97.297,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42241,
    "c": 0.11428,
    "h": 136.4
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#2D5B11
secondary
#703494
accent
#3CEBA9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5B11

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

Preview Lab → · Contrast checker → · Palette generator →

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