#31520F#31520F

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

Color values

HEX#31520F
RGBrgb(49, 82, 15)
HSLhsl(90, 69%, 19%)
HSVhsv(90, 82%, 32%)
CMYKcmyk(40.2%, 0%, 81.7%, 67.8%)
CIE-LABlab(31.17, -24.17, 33.17)
CIE-LCHlch(31.17, 41.05, 126.08°)
OKLaboklab(39.85% -0.0682 0.074)
OKLCHoklch(39.85% 0.101 132.6)
XYZxyz(4.3701, 6.7219, 1.5190)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31520F #300F52
analogous
#52520F #31520F #10520F
triadic
#31520F #0F3152 #520F31
tetradic
#31520F #0F5252 #300F52 #520F10
square
#31520F #0F5252 #300F52 #520F10
split-complementary
#31520F #0F1052 #520F52
monochromatic
#0F1A05 #121E06 #31520F #508618 #6FB922

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31520F#FFFFFF#000000##FFFFFF
##31520F1.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)
#564B03
Deuteranopia (green-blind)
#514816
Tritanopia (blue-blind)
#314E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31520f;
/* rgb */ color: rgb(49, 82, 15);
/* oklch */ color: oklch(39.8% 0.101 132.6);
Tailwind
colors: {
  custom: {
    50: '#6d8353',
    500: '#31520f',
    950: '#000000',
  },
}
SCSS
$custom: #31520f;
$custom-light: #6d8353;
$custom-dark: #000000;
JSON
{
  "hex": "#31520f",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 89.552,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39848,
    "c": 0.10064,
    "h": 132.6
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#31520F
secondary
#5E318C
accent
#3CEC93
background
#F6F8F4
surface
#ECEFE7
border
#C7CAC3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #31520F

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

Preview Lab → · Contrast checker → · Palette generator →

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