#31571B#31571B

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

Color values

HEX#31571B
RGBrgb(49, 87, 27)
HSLhsl(98, 53%, 22%)
HSVhsv(98, 69%, 34%)
CMYKcmyk(43.7%, 0%, 69%, 65.9%)
CIE-LABlab(33.02, -25.57, 29.75)
CIE-LCHlch(33.02, 39.23, 130.68°)
OKLaboklab(41.4% -0.0709 0.0687)
OKLCHoklch(41.4% 0.099 135.9)
XYZxyz(4.8725, 7.5482, 2.2369)
Luminance0.0755 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31571B #411B57
analogous
#4F571B #31571B #1B5723
triadic
#31571B #1B3157 #571B31
tetradic
#31571B #1B4F57 #411B57 #57231B
square
#31571B #1B4F57 #411B57 #57231B
split-complementary
#31571B #231B57 #571B4F
monochromatic
#0D1707 #17280D #31571B #4B8629 #66B438

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31571B#FFFFFF#000000##FFFFFF
##31571B1.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)
#5A5014
Deuteranopia (green-blind)
#554C20
Tritanopia (blue-blind)
#30544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31571b;
/* rgb */ color: rgb(49, 87, 27);
/* oklch */ color: oklch(41.4% 0.099 135.9);
Tailwind
colors: {
  custom: {
    50: '#6c875a',
    500: '#31571b',
    950: '#000000',
  },
}
SCSS
$custom: #31571b;
$custom-light: #6c875a;
$custom-dark: #000000;
JSON
{
  "hex": "#31571b",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 98,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.41399,
    "c": 0.09875,
    "h": 135.9
  },
  "luminance": 0.07548
}

Semantic roles & 50–950 ramp

primary
#31571B
secondary
#71418D
accent
#4CDCA7
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #31571B

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

Preview Lab → · Contrast checker → · Palette generator →

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