#2D5210#2D5210

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

Color values

HEX#2D5210
RGBrgb(45, 82, 16)
HSLhsl(94, 67%, 19%)
HSVhsv(94, 80%, 32%)
CMYKcmyk(45.1%, 0%, 80.5%, 67.8%)
CIE-LABlab(30.95, -25.70, 32.49)
CIE-LCHlch(30.95, 41.42, 128.34°)
OKLaboklab(39.61% -0.0719 0.0729)
OKLCHoklch(39.61% 0.102 134.6)
XYZxyz(4.1929, 6.6297, 1.5488)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5210 #351052
analogous
#4E5210 #2D5210 #105214
triadic
#2D5210 #102D52 #52102D
tetradic
#2D5210 #104E52 #351052 #521410
square
#2D5210 #104E52 #351052 #521410
split-complementary
#2D5210 #141052 #52104E
monochromatic
#0E1A05 #111F06 #2D5210 #49851A #65B824

Accessibility & contrast

On white

9.03
#2D5210 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5210
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5210#FFFFFF#000000##FFFFFF
##2D52101.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B04
Deuteranopia (green-blind)
#504817
Tritanopia (blue-blind)
#2C4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d5210;
/* rgb */ color: rgb(45, 82, 16);
/* oklch */ color: oklch(39.6% 0.102 134.6);
Tailwind
colors: {
  custom: {
    50: '#6a8353',
    500: '#2d5210',
    950: '#000000',
  },
}
SCSS
$custom: #2d5210;
$custom-light: #6a8353;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5210",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 16
  },
  "hsl": {
    "h": 93.636,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39613,
    "c": 0.10236,
    "h": 134.6
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#2D5210
secondary
#64328C
accent
#3EEA9E
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5210

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

Preview Lab → · Contrast checker → · Palette generator →

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