#2D5111#2D5111

#2D5111 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.100 H 134.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2D5111
RGBrgb(45, 81, 17)
HSLhsl(94, 65%, 19%)
HSVhsv(94, 79%, 32%)
CMYKcmyk(44.4%, 0%, 79%, 68.2%)
CIE-LABlab(30.60, -25.14, 31.73)
CIE-LCHlch(30.60, 40.48, 128.39°)
OKLaboklab(39.33% -0.0703 0.0714)
OKLCHoklch(39.33% 0.1 134.6)
XYZxyz(4.1257, 6.4830, 1.5642)
Luminance0.0648 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5111 #351151
analogous
#4D5111 #2D5111 #115115
triadic
#2D5111 #112D51 #51112D
tetradic
#2D5111 #114D51 #351151 #511511
square
#2D5111 #114D51 #351151 #511511
split-complementary
#2D5111 #151151 #51114D
monochromatic
#0E1905 #111E06 #2D5111 #49841C #65B626

Accessibility & contrast

On white

9.14
#2D5111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D5111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5111
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5111#FFFFFF#000000##FFFFFF
##2D51111.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A06
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#2C4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d5111;
/* rgb */ color: rgb(45, 81, 17);
/* oklch */ color: oklch(39.3% 0.100 134.6);
Tailwind
colors: {
  custom: {
    50: '#6a8254',
    500: '#2d5111',
    950: '#000000',
  },
}
SCSS
$custom: #2d5111;
$custom-light: #6a8254;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5111",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 93.75,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39329,
    "c": 0.10024,
    "h": 134.6
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#2D5111
secondary
#64348A
accent
#40E89E
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5111

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

Preview Lab → · Contrast checker → · Palette generator →

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