#2D5612#2D5612

#2D5612 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 40.8% C 0.107 H 135.7°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2D5612
RGBrgb(45, 86, 18)
HSLhsl(96, 65%, 20%)
HSVhsv(96, 79%, 34%)
CMYKcmyk(47.7%, 0%, 79.1%, 66.3%)
CIE-LABlab(32.38, -27.42, 33.10)
CIE-LCHlch(32.38, 42.98, 129.64°)
OKLaboklab(40.79% -0.0764 0.0745)
OKLCHoklch(40.79% 0.107 135.7)
XYZxyz(4.5190, 7.2569, 1.7347)
Luminance0.0726 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5612 #3B1256
analogous
#4F5612 #2D5612 #125619
triadic
#2D5612 #122D56 #56122D
tetradic
#2D5612 #124F56 #3B1256 #561912
square
#2D5612 #124F56 #3B1256 #561912
split-complementary
#2D5612 #191256 #56124F
monochromatic
#0D1905 #132307 #2D5612 #47891D #62BB27

Accessibility & contrast

On white

8.57
#2D5612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2D5612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5612
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5612#FFFFFF#000000##FFFFFF
##2D56121.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#2C5349
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d5612;
/* rgb */ color: rgb(45, 86, 18);
/* oklch */ color: oklch(40.8% 0.107 135.7);
Tailwind
colors: {
  custom: {
    50: '#6a8655',
    500: '#2d5612',
    950: '#000000',
  },
}
SCSS
$custom: #2d5612;
$custom-light: #6a8655;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5612",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 96.176,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.10668,
    "h": 135.7
  },
  "luminance": 0.07257
}

Semantic roles & 50–950 ramp

primary
#2D5612
secondary
#6B358F
accent
#3FE8A5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5612

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

Preview Lab → · Contrast checker → · Palette generator →

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