#2D5811#2D5811

#2D5811 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.4% C 0.110 H 135.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2D5811
RGBrgb(45, 88, 17)
HSLhsl(96, 68%, 21%)
HSVhsv(96, 81%, 35%)
CMYKcmyk(48.9%, 0%, 80.7%, 65.5%)
CIE-LABlab(33.09, -28.41, 34.19)
CIE-LCHlch(33.09, 44.46, 129.72°)
OKLaboklab(41.37% -0.0792 0.0766)
OKLCHoklch(41.37% 0.11 135.9)
XYZxyz(4.6730, 7.5775, 1.7466)
Luminance0.0758 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5811 #3C1158
analogous
#505811 #2D5811 #115818
triadic
#2D5811 #112D58 #58112D
tetradic
#2D5811 #115058 #3C1158 #581811
square
#2D5811 #115058 #3C1158 #581811
split-complementary
#2D5811 #181158 #581150
monochromatic
#0D1A05 #132507 #2D5811 #478B1B #61BF25

Accessibility & contrast

On white

8.35
#2D5811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D5811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5811
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5811#FFFFFF#000000##FFFFFF
##2D58111.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5004
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#2B544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d5811;
/* rgb */ color: rgb(45, 88, 17);
/* oklch */ color: oklch(41.4% 0.110 135.9);
Tailwind
colors: {
  custom: {
    50: '#6b8755',
    500: '#2d5811',
    950: '#000000',
  },
}
SCSS
$custom: #2d5811;
$custom-light: #6b8755;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5811",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 96.338,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41369,
    "c": 0.11015,
    "h": 135.9
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#2D5811
secondary
#6C3491
accent
#3DEAA6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5811

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

Preview Lab → · Contrast checker → · Palette generator →

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