#31971F#31971F

#31971F is a mid, vivid green. Relative luminance 0.229; OKLCH L 59.5% C 0.179 H 141.1°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#31971F
RGBrgb(49, 151, 31)
HSLhsl(111, 66%, 36%)
HSVhsv(111, 79%, 59%)
CMYKcmyk(67.5%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.95, -51.02, 50.47)
CIE-LCHlch(54.95, 71.77, 135.31°)
OKLaboklab(59.49% -0.1395 0.1127)
OKLCHoklch(59.49% 0.179 141.1)
XYZxyz(12.5799, 22.8838, 5.0501)
Luminance0.2288 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31971F #851F97
analogous
#6D971F #31971F #1F9749
triadic
#31971F #1F3197 #971F31
tetradic
#31971F #1F6D97 #851F97 #97491F
square
#31971F #1F6D97 #851F97 #97491F
split-complementary
#31971F #491F97 #971F6D
monochromatic
#10310A #216415 #31971F #41CA29 #69DC54

Accessibility & contrast

On white

3.77
#31971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#31971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31971F
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31971F#FFFFFF#000000##000000
##31971F1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#8F802D
Tritanopia (blue-blind)
#1D9281
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #31971f;
/* rgb */ color: rgb(49, 151, 31);
/* oklch */ color: oklch(59.5% 0.179 141.1);
Tailwind
colors: {
  custom: {
    50: '#78b765',
    500: '#31971f',
    950: '#000000',
  },
}
SCSS
$custom: #31971f;
$custom-light: #78b765;
$custom-dark: #000000;
JSON
{
  "hex": "#31971f",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 111,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.5949,
    "c": 0.1793,
    "h": 141.1
  },
  "luminance": 0.22885
}

Semantic roles & 50–950 ramp

primary
#31971F
secondary
#AF52BF
accent
#3FE9CF
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #31971F

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

Preview Lab → · Contrast checker → · Palette generator →

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