#31570C#31570C

#31570C is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.3% C 0.109 H 133.6°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#31570C
RGBrgb(49, 87, 12)
HSLhsl(90, 76%, 19%)
HSVhsv(90, 86%, 34%)
CMYKcmyk(43.7%, 0%, 86.2%, 65.9%)
CIE-LABlab(32.91, -26.76, 35.91)
CIE-LCHlch(32.91, 44.79, 126.69°)
OKLaboklab(41.27% -0.0754 0.0793)
OKLCHoklch(41.27% 0.109 133.6)
XYZxyz(4.7411, 7.4957, 1.5447)
Luminance0.0750 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31570C #320C57
analogous
#57570C #31570C #0C570C
triadic
#31570C #0C3157 #570C31
tetradic
#31570C #0C5757 #320C57 #570C0C
square
#31570C #0C5757 #320C57 #570C0C
split-complementary
#31570C #0C0C57 #570C57
monochromatic
#0F1B04 #132105 #31570C #4F8D13 #6EC31B

Accessibility & contrast

On white

8.40
#31570C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#31570C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31570C
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31570C#FFFFFF#000000##FFFFFF
##31570C1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F00
Deuteranopia (green-blind)
#564C15
Tritanopia (blue-blind)
#315349
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #31570c;
/* rgb */ color: rgb(49, 87, 12);
/* oklch */ color: oklch(41.3% 0.109 133.6);
Tailwind
colors: {
  custom: {
    50: '#6d8752',
    500: '#31570c',
    950: '#000000',
  },
}
SCSS
$custom: #31570c;
$custom-light: #6d8752;
$custom-dark: #000000;
JSON
{
  "hex": "#31570c",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 12
  },
  "hsl": {
    "h": 90.4,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.4127,
    "c": 0.10937,
    "h": 133.6
  },
  "luminance": 0.07496
}

Semantic roles & 50–950 ramp

primary
#31570C
secondary
#602D92
accent
#35F295
background
#F6F8F4
surface
#ECEFE7
border
#C7CAC3
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #31570C

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

Preview Lab → · Contrast checker → · Palette generator →

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