#31771B#31771B

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

Color values

HEX#31771B
RGBrgb(49, 119, 27)
HSLhsl(106, 63%, 29%)
HSVhsv(106, 77%, 47%)
CMYKcmyk(58.8%, 0%, 77.3%, 53.3%)
CIE-LABlab(44.13, -39.48, 41.31)
CIE-LCHlch(44.13, 57.14, 133.71°)
OKLaboklab(50.53% -0.1086 0.093)
OKLCHoklch(50.53% 0.143 139.4)
XYZxyz(8.0609, 13.9251, 3.2997)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31771B #611B77
analogous
#5F771B #31771B #1B7733
triadic
#31771B #1B3177 #771B31
tetradic
#31771B #1B5F77 #611B77 #77331B
square
#31771B #1B5F77 #611B77 #77331B
split-complementary
#31771B #331B77 #771B5F
monochromatic
#0A1906 #1C4510 #31771B #46A926 #5ED23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31771B#FFFFFF#000000##FFFFFF
##31771B1.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)
#7B6C08
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#297365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #31771b;
/* rgb */ color: rgb(49, 119, 27);
/* oklch */ color: oklch(50.5% 0.143 139.4);
Tailwind
colors: {
  custom: {
    50: '#729f5e',
    500: '#31771b',
    950: '#000000',
  },
}
SCSS
$custom: #31771b;
$custom-light: #729f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#31771b",
  "rgb": {
    "r": 49,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 105.652,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50525,
    "c": 0.14296,
    "h": 139.4
  },
  "luminance": 0.13926
}

Semantic roles & 50–950 ramp

primary
#31771B
secondary
#9242AB
accent
#42E6BF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31771B

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

Preview Lab → · Contrast checker → · Palette generator →

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