#2D5011#2D5011

#2D5011 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.099 H 134.3°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2D5011
RGBrgb(45, 80, 17)
HSLhsl(93, 65%, 19%)
HSVhsv(93, 79%, 31%)
CMYKcmyk(43.7%, 0%, 78.8%, 68.6%)
CIE-LABlab(30.24, -24.66, 31.37)
CIE-LCHlch(30.24, 39.90, 128.17°)
OKLaboklab(39.04% -0.069 0.0707)
OKLCHoklch(39.04% 0.099 134.3)
XYZxyz(4.0519, 6.3355, 1.5396)
Luminance0.0634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5011 #341150
analogous
#4D5011 #2D5011 #115015
triadic
#2D5011 #112D50 #50112D
tetradic
#2D5011 #114D50 #341150 #501511
square
#2D5011 #114D50 #341150 #501511
split-complementary
#2D5011 #151150 #50114D
monochromatic
#0E1905 #111E06 #2D5011 #49821C #66B526

Accessibility & contrast

On white

9.26
#2D5011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D5011 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5011
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5011#FFFFFF#000000##FFFFFF
##2D50111.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534906
Deuteranopia (green-blind)
#4F4617
Tritanopia (blue-blind)
#2D4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d5011;
/* rgb */ color: rgb(45, 80, 17);
/* oklch */ color: oklch(39.0% 0.099 134.3);
Tailwind
colors: {
  custom: {
    50: '#6a8154',
    500: '#2d5011',
    950: '#000000',
  },
}
SCSS
$custom: #2d5011;
$custom-light: #6a8154;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5011",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 17
  },
  "hsl": {
    "h": 93.333,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39038,
    "c": 0.09878,
    "h": 134.3
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#2D5011
secondary
#633389
accent
#40E89D
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5011

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

Preview Lab → · Contrast checker → · Palette generator →

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