#31570F#31570F

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

Color values

HEX#31570F
RGBrgb(49, 87, 15)
HSLhsl(92, 71%, 20%)
HSVhsv(92, 83%, 34%)
CMYKcmyk(43.7%, 0%, 82.8%, 65.9%)
CIE-LABlab(32.93, -26.58, 34.87)
CIE-LCHlch(32.93, 43.85, 127.31°)
OKLaboklab(41.29% -0.0747 0.0776)
OKLCHoklch(41.29% 0.108 133.9)
XYZxyz(4.7610, 7.5036, 1.6493)
Luminance0.0750 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31570F #350F57
analogous
#55570F #31570F #0F5711
triadic
#31570F #0F3157 #570F31
tetradic
#31570F #0F5557 #350F57 #57110F
square
#31570F #0F5557 #350F57 #57110F
split-complementary
#31570F #110F57 #570F55
monochromatic
#0F1A05 #142306 #31570F #4E8B18 #6CBF21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31570F#FFFFFF#000000##FFFFFF
##31570F1.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)
#5B4F01
Deuteranopia (green-blind)
#564C17
Tritanopia (blue-blind)
#315349
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #31570f;
/* rgb */ color: rgb(49, 87, 15);
/* oklch */ color: oklch(41.3% 0.108 133.9);
Tailwind
colors: {
  custom: {
    50: '#6d8754',
    500: '#31570f',
    950: '#000000',
  },
}
SCSS
$custom: #31570f;
$custom-light: #6d8754;
$custom-dark: #000000;
JSON
{
  "hex": "#31570f",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 15
  },
  "hsl": {
    "h": 91.667,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.41289,
    "c": 0.10768,
    "h": 133.9
  },
  "luminance": 0.07504
}

Semantic roles & 50–950 ramp

primary
#31570F
secondary
#643191
accent
#3AED99
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #31570F

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

Preview Lab → · Contrast checker → · Palette generator →

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