#2D5112#2D5112

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

Color values

HEX#2D5112
RGBrgb(45, 81, 18)
HSLhsl(94, 64%, 19%)
HSVhsv(94, 78%, 32%)
CMYKcmyk(44.4%, 0%, 77.8%, 68.2%)
CIE-LABlab(30.61, -25.06, 31.31)
CIE-LCHlch(30.61, 40.10, 128.68°)
OKLaboklab(39.34% -0.07 0.0707)
OKLCHoklch(39.34% 0.1 134.7)
XYZxyz(4.1337, 6.4862, 1.6063)
Luminance0.0649 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5112 #361251
analogous
#4D5112 #2D5112 #125117
triadic
#2D5112 #122D51 #51122D
tetradic
#2D5112 #124D51 #361251 #511712
square
#2D5112 #124D51 #361251 #511712
split-complementary
#2D5112 #171251 #51124D
monochromatic
#0E1906 #111F07 #2D5112 #49831D #65B528

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5112#FFFFFF#000000##FFFFFF
##2D51121.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)
#544A08
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#2C4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d5112;
/* rgb */ color: rgb(45, 81, 18);
/* oklch */ color: oklch(39.3% 0.100 134.7);
Tailwind
colors: {
  custom: {
    50: '#6a8254',
    500: '#2d5112',
    950: '#000000',
  },
}
SCSS
$custom: #2d5112;
$custom-light: #6a8254;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5112",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 94.286,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39338,
    "c": 0.09952,
    "h": 134.7
  },
  "luminance": 0.06486
}

Semantic roles & 50–950 ramp

primary
#2D5112
secondary
#65358A
accent
#41E7A0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5112

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

Preview Lab → · Contrast checker → · Palette generator →

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