#31771D#31771D

#31771D is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.5% C 0.142 H 139.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#31771D
RGBrgb(49, 119, 29)
HSLhsl(107, 61%, 29%)
HSVhsv(107, 76%, 47%)
CMYKcmyk(58.8%, 0%, 75.6%, 53.3%)
CIE-LABlab(44.14, -39.32, 40.55)
CIE-LCHlch(44.14, 56.49, 134.12°)
OKLaboklab(50.54% -0.108 0.0917)
OKLCHoklch(50.54% 0.142 139.7)
XYZxyz(8.0849, 13.9346, 3.4258)
Luminance0.1394 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31771D #631D77
analogous
#5E771D #31771D #1D7736
triadic
#31771D #1D3177 #771D31
tetradic
#31771D #1D5E77 #631D77 #77361D
square
#31771D #1D5E77 #631D77 #77361D
split-complementary
#31771D #361D77 #771D5E
monochromatic
#0A1906 #1D4611 #31771D #45A829 #5FD03E

Accessibility & contrast

On white

5.55
#31771D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #31771D
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31771D#FFFFFF#000000##FFFFFF
##31771D1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C0D
Deuteranopia (green-blind)
#726626
Tritanopia (blue-blind)
#297365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #31771d;
/* rgb */ color: rgb(49, 119, 29);
/* oklch */ color: oklch(50.5% 0.142 139.7);
Tailwind
colors: {
  custom: {
    50: '#729f5f',
    500: '#31771d',
    950: '#000000',
  },
}
SCSS
$custom: #31771d;
$custom-light: #729f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#31771d",
  "rgb": {
    "r": 49,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 106.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50541,
    "c": 0.1417,
    "h": 139.7
  },
  "luminance": 0.13935
}

Semantic roles & 50–950 ramp

primary
#31771D
secondary
#9445AB
accent
#44E4C0
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31771D

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

Preview Lab → · Contrast checker → · Palette generator →

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