#2D5012#2D5012

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

Color values

HEX#2D5012
RGBrgb(45, 80, 18)
HSLhsl(94, 63%, 19%)
HSVhsv(94, 78%, 31%)
CMYKcmyk(43.7%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.25, -24.58, 30.94)
CIE-LCHlch(30.25, 39.52, 128.46°)
OKLaboklab(39.05% -0.0687 0.07)
OKLCHoklch(39.05% 0.098 134.5)
XYZxyz(4.0599, 6.3387, 1.5817)
Luminance0.0634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5012 #351250
analogous
#4C5012 #2D5012 #125016
triadic
#2D5012 #122D50 #50122D
tetradic
#2D5012 #124C50 #351250 #501612
square
#2D5012 #124C50 #351250 #501612
split-complementary
#2D5012 #161250 #50124C
monochromatic
#0E1906 #111E07 #2D5012 #49821D #65B428

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5012#FFFFFF#000000##FFFFFF
##2D50121.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)
#534908
Deuteranopia (green-blind)
#4F4618
Tritanopia (blue-blind)
#2C4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d5012;
/* rgb */ color: rgb(45, 80, 18);
/* oklch */ color: oklch(39.0% 0.098 134.5);
Tailwind
colors: {
  custom: {
    50: '#698154',
    500: '#2d5012',
    950: '#000000',
  },
}
SCSS
$custom: #2d5012;
$custom-light: #698154;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5012",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 93.871,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39047,
    "c": 0.09806,
    "h": 134.5
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

primary
#2D5012
secondary
#643589
accent
#41E69F
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5012

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

Preview Lab → · Contrast checker → · Palette generator →

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