#31771F#31771F

#31771F is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.6% C 0.140 H 140.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#31771F
RGBrgb(49, 119, 31)
HSLhsl(108, 59%, 29%)
HSVhsv(108, 74%, 47%)
CMYKcmyk(58.8%, 0%, 73.9%, 53.3%)
CIE-LABlab(44.15, -39.16, 39.76)
CIE-LCHlch(44.15, 55.80, 134.56°)
OKLaboklab(50.56% -0.1075 0.0903)
OKLCHoklch(50.56% 0.14 140)
XYZxyz(8.1104, 13.9449, 3.5603)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31771F #651F77
analogous
#5D771F #31771F #1F7739
triadic
#31771F #1F3177 #771F31
tetradic
#31771F #1F5D77 #651F77 #77391F
square
#31771F #1F5D77 #651F77 #77391F
split-complementary
#31771F #391F77 #771F5D
monochromatic
#0A1806 #1D4612 #31771F #45A82C #5FCE43

Accessibility & contrast

On white

5.54
#31771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#31771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31771F
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31771F#FFFFFF#000000##FFFFFF
##31771F1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C11
Deuteranopia (green-blind)
#726628
Tritanopia (blue-blind)
#297366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #31771f;
/* rgb */ color: rgb(49, 119, 31);
/* oklch */ color: oklch(50.6% 0.140 140.0);
Tailwind
colors: {
  custom: {
    50: '#729f60',
    500: '#31771f',
    950: '#000000',
  },
}
SCSS
$custom: #31771f;
$custom-light: #729f60;
$custom-dark: #000000;
JSON
{
  "hex": "#31771f",
  "rgb": {
    "r": 49,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 107.727,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50557,
    "c": 0.14037,
    "h": 140
  },
  "luminance": 0.13946
}

Semantic roles & 50–950 ramp

primary
#31771F
secondary
#9647AB
accent
#46E2C2
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31771F

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

Preview Lab → · Contrast checker → · Palette generator →

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