#31971D#31971D

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

Color values

HEX#31971D
RGBrgb(49, 151, 29)
HSLhsl(110, 68%, 35%)
HSVhsv(110, 81%, 59%)
CMYKcmyk(67.5%, 0%, 80.8%, 40.8%)
CIE-LABlab(54.94, -51.15, 51.10)
CIE-LCHlch(54.94, 72.30, 135.03°)
OKLaboklab(59.48% -0.1399 0.1137)
OKLCHoklch(59.48% 0.18 140.9)
XYZxyz(12.5544, 22.8736, 4.9156)
Luminance0.2288 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31971D #831D97
analogous
#6E971D #31971D #1D9746
triadic
#31971D #1D3197 #971D31
tetradic
#31971D #1D6E97 #831D97 #97461D
square
#31971D #1D6E97 #831D97 #97461D
split-complementary
#31971D #461D97 #971D6E
monochromatic
#103009 #206413 #31971D #42CA27 #68DE51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31971D#FFFFFF#000000##000000
##31971D1.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)
#8F802C
Tritanopia (blue-blind)
#1D9281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #31971d;
/* rgb */ color: rgb(49, 151, 29);
/* oklch */ color: oklch(59.5% 0.180 140.9);
Tailwind
colors: {
  custom: {
    50: '#78b764',
    500: '#31971d',
    950: '#000000',
  },
}
SCSS
$custom: #31971d;
$custom-light: #78b764;
$custom-dark: #000000;
JSON
{
  "hex": "#31971d",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 110.164,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59478,
    "c": 0.18029,
    "h": 140.9
  },
  "luminance": 0.22875
}

Semantic roles & 50–950 ramp

primary
#31971D
secondary
#AE4FC0
accent
#3DEBCE
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #31971D

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

Preview Lab → · Contrast checker → · Palette generator →

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