#31971B#31971B

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

Color values

HEX#31971B
RGBrgb(49, 151, 27)
HSLhsl(109, 70%, 35%)
HSVhsv(109, 82%, 59%)
CMYKcmyk(67.5%, 0%, 82.1%, 40.8%)
CIE-LABlab(54.93, -51.27, 51.70)
CIE-LCHlch(54.93, 72.81, 134.76°)
OKLaboklab(59.47% -0.1403 0.1147)
OKLCHoklch(59.47% 0.181 140.8)
XYZxyz(12.5304, 22.8640, 4.7895)
Luminance0.2286 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31971B #811B97
analogous
#6F971B #31971B #1B9743
triadic
#31971B #1B3197 #971B31
tetradic
#31971B #1B6F97 #811B97 #97431B
square
#31971B #1B6F97 #811B97 #97431B
split-complementary
#31971B #431B97 #971B6F
monochromatic
#0F2F08 #206312 #31971B #42CB24 #67DF4D

Accessibility & contrast

On white

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

On black

5.57
#31971B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31971B
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31971B#FFFFFF#000000##000000
##31971B1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#1E9280
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #31971b;
/* rgb */ color: rgb(49, 151, 27);
/* oklch */ color: oklch(59.5% 0.181 140.8);
Tailwind
colors: {
  custom: {
    50: '#78b763',
    500: '#31971b',
    950: '#000000',
  },
}
SCSS
$custom: #31971b;
$custom-light: #78b763;
$custom-dark: #000000;
JSON
{
  "hex": "#31971b",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 109.355,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59467,
    "c": 0.18122,
    "h": 140.8
  },
  "luminance": 0.22865
}

Semantic roles & 50–950 ramp

primary
#31971B
secondary
#AD4CC1
accent
#3BECCD
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #31971B

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

Preview Lab → · Contrast checker → · Palette generator →

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