#31771E#31771E

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

Color values

HEX#31771E
RGBrgb(49, 119, 30)
HSLhsl(107, 60%, 29%)
HSVhsv(107, 75%, 47%)
CMYKcmyk(58.8%, 0%, 74.8%, 53.3%)
CIE-LABlab(44.15, -39.24, 40.16)
CIE-LCHlch(44.15, 56.15, 134.34°)
OKLaboklab(50.55% -0.1078 0.091)
OKLCHoklch(50.55% 0.141 139.8)
XYZxyz(8.0974, 13.9397, 3.4920)
Luminance0.1394 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31771E #641E77
analogous
#5E771E #31771E #1E7738
triadic
#31771E #1E3177 #771E31
tetradic
#31771E #1E5E77 #641E77 #77381E
square
#31771E #1E5E77 #641E77 #77381E
split-complementary
#31771E #381E77 #771E5E
monochromatic
#0A1806 #1D4612 #31771E #45A82A #5FCF40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31771E#FFFFFF#000000##FFFFFF
##31771E1.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)
#7A6C0F
Deuteranopia (green-blind)
#726627
Tritanopia (blue-blind)
#297366
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #31771e;
/* rgb */ color: rgb(49, 119, 30);
/* oklch */ color: oklch(50.5% 0.141 139.8);
Tailwind
colors: {
  custom: {
    50: '#729f60',
    500: '#31771e',
    950: '#000000',
  },
}
SCSS
$custom: #31771e;
$custom-light: #729f60;
$custom-dark: #000000;
JSON
{
  "hex": "#31771e",
  "rgb": {
    "r": 49,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 107.191,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50549,
    "c": 0.14104,
    "h": 139.8
  },
  "luminance": 0.1394
}

Semantic roles & 50–950 ramp

primary
#31771E
secondary
#9546AB
accent
#45E3C1
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31771E

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

Preview Lab → · Contrast checker → · Palette generator →

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