#31972F#31972F

#31972F is a mid, vivid green. Relative luminance 0.230; OKLCH L 59.6% C 0.170 H 142.8°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#31972F
RGBrgb(49, 151, 47)
HSLhsl(119, 53%, 39%)
HSVhsv(119, 69%, 59%)
CMYKcmyk(67.5%, 0%, 68.9%, 40.8%)
CIE-LABlab(55.06, -49.71, 44.56)
CIE-LCHlch(55.06, 66.76, 138.13°)
OKLaboklab(59.62% -0.1351 0.1025)
OKLCHoklch(59.62% 0.17 142.8)
XYZxyz(12.8456, 22.9901, 6.4493)
Luminance0.2299 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31972F #952F97
analogous
#65972F #31972F #2F9761
triadic
#31972F #2F3197 #972F31
tetradic
#31972F #2F6597 #952F97 #97612F
square
#31972F #2F6597 #952F97 #97612F
split-complementary
#31972F #612F97 #972F65
monochromatic
#133A12 #226820 #31972F #42C340 #70D26E

Accessibility & contrast

On white

3.75
#31972F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#31972F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31972F
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31972F#FFFFFF#000000##000000
##31972F1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8921
Deuteranopia (green-blind)
#8E8139
Tritanopia (blue-blind)
#199382
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #31972f;
/* rgb */ color: rgb(49, 151, 47);
/* oklch */ color: oklch(59.6% 0.170 142.8);
Tailwind
colors: {
  custom: {
    50: '#77b76d',
    500: '#31972f',
    950: '#000000',
  },
}
SCSS
$custom: #31972f;
$custom-light: #77b76d;
$custom-dark: #000000;
JSON
{
  "hex": "#31972f",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 47
  },
  "hsl": {
    "h": 118.846,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.59616,
    "c": 0.16954,
    "h": 142.8
  },
  "luminance": 0.22991
}

Semantic roles & 50–950 ramp

primary
#31972F
secondary
#B868B9
accent
#4CDCD9
background
#F7FBF6
surface
#EEF6EC
border
#C9D0C7
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #31972F

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

Preview Lab → · Contrast checker → · Palette generator →

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