#31571C#31571C

#31571C is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.4% C 0.098 H 136.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#31571C
RGBrgb(49, 87, 28)
HSLhsl(99, 51%, 23%)
HSVhsv(99, 68%, 34%)
CMYKcmyk(43.7%, 0%, 67.8%, 65.9%)
CIE-LABlab(33.03, -25.46, 29.26)
CIE-LCHlch(33.03, 38.79, 131.03°)
OKLaboklab(41.41% -0.0706 0.0678)
OKLCHoklch(41.41% 0.098 136.1)
XYZxyz(4.8843, 7.5529, 2.2989)
Luminance0.0755 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31571C #421C57
analogous
#4E571C #31571C #1C5725
triadic
#31571C #1C3157 #571C31
tetradic
#31571C #1C4E57 #421C57 #57251C
square
#31571C #1C4E57 #421C57 #57251C
split-complementary
#31571C #251C57 #571C4E
monochromatic
#0D1707 #17290D #31571C #4B852B #65B43A

Accessibility & contrast

On white

8.36
#31571C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31571C
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31571C#FFFFFF#000000##FFFFFF
##31571C1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5015
Deuteranopia (green-blind)
#554D21
Tritanopia (blue-blind)
#30544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31571c;
/* rgb */ color: rgb(49, 87, 28);
/* oklch */ color: oklch(41.4% 0.098 136.1);
Tailwind
colors: {
  custom: {
    50: '#6c875b',
    500: '#31571c',
    950: '#000000',
  },
}
SCSS
$custom: #31571c;
$custom-light: #6c875b;
$custom-dark: #000000;
JSON
{
  "hex": "#31571c",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 28
  },
  "hsl": {
    "h": 98.644,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41411,
    "c": 0.09786,
    "h": 136.1
  },
  "luminance": 0.07553
}

Semantic roles & 50–950 ramp

primary
#31571C
secondary
#72428D
accent
#4DDBA8
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #31571C

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

Preview Lab → · Contrast checker → · Palette generator →

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