#31971A#31971A

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

Color values

HEX#31971A
RGBrgb(49, 151, 26)
HSLhsl(109, 71%, 35%)
HSVhsv(109, 83%, 59%)
CMYKcmyk(67.5%, 0%, 82.8%, 40.8%)
CIE-LABlab(54.93, -51.32, 51.98)
CIE-LCHlch(54.93, 73.05, 134.63°)
OKLaboklab(59.46% -0.1405 0.1151)
OKLCHoklch(59.46% 0.182 140.7)
XYZxyz(12.5191, 22.8595, 4.7297)
Luminance0.2286 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31971A #801A97
analogous
#70971A #31971A #1A9742
triadic
#31971A #1A3197 #971A31
tetradic
#31971A #1A7097 #801A97 #97421A
square
#31971A #1A7097 #801A97 #97421A
split-complementary
#31971A #421A97 #971A70
monochromatic
#0F2F08 #206311 #31971A #42CB23 #67E04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31971A#FFFFFF#000000##000000
##31971A1.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: #31971a;
/* rgb */ color: rgb(49, 151, 26);
/* oklch */ color: oklch(59.5% 0.182 140.7);
Tailwind
colors: {
  custom: {
    50: '#78b763',
    500: '#31971a',
    950: '#000000',
  },
}
SCSS
$custom: #31971a;
$custom-light: #78b763;
$custom-dark: #000000;
JSON
{
  "hex": "#31971a",
  "rgb": {
    "r": 49,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 108.96,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.59461,
    "c": 0.18166,
    "h": 140.7
  },
  "luminance": 0.22861
}

Semantic roles & 50–950 ramp

primary
#31971A
secondary
#AC4BC2
accent
#3AEDCC
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #31971A

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

Preview Lab → · Contrast checker → · Palette generator →

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