#2D5412#2D5412

#2D5412 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.2% C 0.104 H 135.4°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2D5412
RGBrgb(45, 84, 18)
HSLhsl(95, 65%, 20%)
HSVhsv(95, 79%, 33%)
CMYKcmyk(46.4%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.67, -26.49, 32.38)
CIE-LCHlch(31.67, 41.84, 129.28°)
OKLaboklab(40.21% -0.0739 0.073)
OKLCHoklch(40.21% 0.104 135.4)
XYZxyz(4.3616, 6.9420, 1.6823)
Luminance0.0694 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5412 #391254
analogous
#4E5412 #2D5412 #125418
triadic
#2D5412 #122D54 #54122D
tetradic
#2D5412 #124E54 #391254 #541812
square
#2D5412 #124E54 #391254 #541812
split-complementary
#2D5412 #181254 #54124E
monochromatic
#0D1905 #122207 #2D5412 #48861D #63B928

Accessibility & contrast

On white

8.79
#2D5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2D5412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5412
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5412#FFFFFF#000000##FFFFFF
##2D54121.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D07
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#2C5147
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d5412;
/* rgb */ color: rgb(45, 84, 18);
/* oklch */ color: oklch(40.2% 0.104 135.4);
Tailwind
colors: {
  custom: {
    50: '#6a8455',
    500: '#2d5412',
    950: '#000000',
  },
}
SCSS
$custom: #2d5412;
$custom-light: #6a8455;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5412",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 95.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40212,
    "c": 0.10384,
    "h": 135.4
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#2D5412
secondary
#69358D
accent
#40E8A3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5412

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

Preview Lab → · Contrast checker → · Palette generator →

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