#31571A#31571A

#31571A is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.4% C 0.100 H 135.7°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#31571A
RGBrgb(49, 87, 26)
HSLhsl(97, 54%, 22%)
HSVhsv(97, 70%, 34%)
CMYKcmyk(43.7%, 0%, 70.1%, 65.9%)
CIE-LABlab(33.01, -25.67, 30.22)
CIE-LCHlch(33.01, 39.65, 130.34°)
OKLaboklab(41.39% -0.0713 0.0696)
OKLCHoklch(41.39% 0.1 135.7)
XYZxyz(4.8612, 7.5437, 2.1770)
Luminance0.0754 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31571A #401A57
analogous
#50571A #31571A #1A5722
triadic
#31571A #1A3157 #571A31
tetradic
#31571A #1A5057 #401A57 #57221A
square
#31571A #1A5057 #401A57 #57221A
split-complementary
#31571A #221A57 #571A50
monochromatic
#0D1807 #16280C #31571A #4C8628 #66B536

Accessibility & contrast

On white

8.37
#31571A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#31571A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31571A
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31571A#FFFFFF#000000##FFFFFF
##31571A1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5012
Deuteranopia (green-blind)
#554C1F
Tritanopia (blue-blind)
#30544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31571a;
/* rgb */ color: rgb(49, 87, 26);
/* oklch */ color: oklch(41.4% 0.100 135.7);
Tailwind
colors: {
  custom: {
    50: '#6d875a',
    500: '#31571a',
    950: '#000000',
  },
}
SCSS
$custom: #31571a;
$custom-light: #6d875a;
$custom-dark: #000000;
JSON
{
  "hex": "#31571a",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 97.377,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41388,
    "c": 0.09962,
    "h": 135.7
  },
  "luminance": 0.07544
}

Semantic roles & 50–950 ramp

primary
#31571A
secondary
#70408D
accent
#4ADDA6
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #31571A

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

Preview Lab → · Contrast checker → · Palette generator →

#31571A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva