#2D5214#2D5214

#2D5214 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.099 H 135.3°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2D5214
RGBrgb(45, 82, 20)
HSLhsl(96, 61%, 20%)
HSVhsv(96, 76%, 32%)
CMYKcmyk(45.1%, 0%, 75.6%, 67.8%)
CIE-LABlab(30.98, -25.37, 30.80)
CIE-LCHlch(30.98, 39.91, 129.47°)
OKLaboklab(39.65% -0.0707 0.07)
OKLCHoklch(39.65% 0.099 135.3)
XYZxyz(4.2257, 6.6428, 1.7212)
Luminance0.0664 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5214 #391452
analogous
#4C5214 #2D5214 #14521A
triadic
#2D5214 #142D52 #52142D
tetradic
#2D5214 #144C52 #391452 #521A14
square
#2D5214 #144C52 #391452 #521A14
split-complementary
#2D5214 #1A1452 #52144C
monochromatic
#0E1906 #122108 #2D5214 #488320 #63B42C

Accessibility & contrast

On white

9.02
#2D5214 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2D5214 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5214
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5214#FFFFFF#000000##FFFFFF
##2D52141.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0B
Deuteranopia (green-blind)
#50481A
Tritanopia (blue-blind)
#2C4F46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d5214;
/* rgb */ color: rgb(45, 82, 20);
/* oklch */ color: oklch(39.6% 0.099 135.3);
Tailwind
colors: {
  custom: {
    50: '#6a8356',
    500: '#2d5214',
    950: '#000000',
  },
}
SCSS
$custom: #2d5214;
$custom-light: #6a8356;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5214",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 20
  },
  "hsl": {
    "h": 95.806,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.39648,
    "c": 0.09947,
    "h": 135.3
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#2D5214
secondary
#69388A
accent
#44E4A3
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5214

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

Preview Lab → · Contrast checker → · Palette generator →

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