#31520D#31520D

#31520D is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.102 H 132.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#31520D
RGBrgb(49, 82, 13)
HSLhsl(89, 73%, 19%)
HSVhsv(89, 84%, 32%)
CMYKcmyk(40.2%, 0%, 84.1%, 67.8%)
CIE-LABlab(31.15, -24.30, 33.92)
CIE-LCHlch(31.15, 41.73, 125.62°)
OKLaboklab(39.83% -0.0687 0.0753)
OKLCHoklch(39.83% 0.102 132.4)
XYZxyz(4.3565, 6.7164, 1.4475)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31520D #2E0D52
analogous
#52500D #31520D #0E520D
triadic
#31520D #0D3152 #520D31
tetradic
#31520D #0D5250 #2E0D52 #520D0E
square
#31520D #0D5250 #2E0D52 #520D0E
split-complementary
#31520D #0D0E52 #500D52
monochromatic
#101A04 #111D05 #31520D #518715 #70BC1E

Accessibility & contrast

On white

8.96
#31520D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#31520D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31520D
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31520D#FFFFFF#000000##FFFFFF
##31520D1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B00
Deuteranopia (green-blind)
#514814
Tritanopia (blue-blind)
#324E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31520d;
/* rgb */ color: rgb(49, 82, 13);
/* oklch */ color: oklch(39.8% 0.102 132.4);
Tailwind
colors: {
  custom: {
    50: '#6d8352',
    500: '#31520d',
    950: '#000000',
  },
}
SCSS
$custom: #31520d;
$custom-light: #6d8352;
$custom-dark: #000000;
JSON
{
  "hex": "#31520d",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 13
  },
  "hsl": {
    "h": 88.696,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.10187,
    "h": 132.4
  },
  "luminance": 0.06717
}

Semantic roles & 50–950 ramp

primary
#31520D
secondary
#5B2E8D
accent
#38EF90
background
#F6F8F4
surface
#ECEFE7
border
#C7CAC3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #31520D

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

Preview Lab → · Contrast checker → · Palette generator →

#31520D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva