#2D5311#2D5311

#2D5311 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 39.9% C 0.103 H 135.0°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2D5311
RGBrgb(45, 83, 17)
HSLhsl(95, 66%, 20%)
HSVhsv(95, 80%, 33%)
CMYKcmyk(45.8%, 0%, 79.5%, 67.5%)
CIE-LABlab(31.31, -26.09, 32.44)
CIE-LCHlch(31.31, 41.63, 128.81°)
OKLaboklab(39.91% -0.0729 0.0729)
OKLCHoklch(39.91% 0.103 135)
XYZxyz(4.2765, 6.7846, 1.6144)
Luminance0.0678 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5311 #371153
analogous
#4E5311 #2D5311 #115316
triadic
#2D5311 #112D53 #53112D
tetradic
#2D5311 #114E53 #371153 #531611
square
#2D5311 #114E53 #371153 #531611
split-complementary
#2D5311 #161153 #53114E
monochromatic
#0E1905 #112007 #2D5311 #49861B #64B926

Accessibility & contrast

On white

8.91
#2D5311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D5311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5311
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5311#FFFFFF#000000##FFFFFF
##2D53111.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C05
Deuteranopia (green-blind)
#514917
Tritanopia (blue-blind)
#2C5046
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d5311;
/* rgb */ color: rgb(45, 83, 17);
/* oklch */ color: oklch(39.9% 0.103 135.0);
Tailwind
colors: {
  custom: {
    50: '#6a8454',
    500: '#2d5311',
    950: '#000000',
  },
}
SCSS
$custom: #2d5311;
$custom-light: #6a8454;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5311",
  "rgb": {
    "r": 45,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 94.545,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39912,
    "c": 0.1031,
    "h": 135
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#2D5311
secondary
#67348C
accent
#3FE9A1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5311

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

Preview Lab → · Contrast checker → · Palette generator →

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