#31772F#31772F

#31772F is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.128 H 143.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#31772F
RGBrgb(49, 119, 47)
HSLhsl(118, 43%, 33%)
HSVhsv(118, 61%, 47%)
CMYKcmyk(58.8%, 0%, 60.5%, 53.3%)
CIE-LABlab(44.31, -37.44, 32.55)
CIE-LCHlch(44.31, 49.61, 138.99°)
OKLaboklab(50.73% -0.1018 0.0769)
OKLCHoklch(50.73% 0.128 143)
XYZxyz(8.3761, 14.0511, 4.9595)
Luminance0.1405 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31772F #752F77
analogous
#55772F #31772F #2F7751
triadic
#31772F #2F3177 #772F31
tetradic
#31772F #2F5577 #752F77 #77512F
square
#31772F #2F5577 #752F77 #77512F
split-complementary
#31772F #512F77 #772F55
monochromatic
#0D1F0C #1F4B1E #31772F #43A340 #63C060

Accessibility & contrast

On white

5.51
#31772F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#31772F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31772F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31772F#FFFFFF#000000##FFFFFF
##31772F1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C28
Deuteranopia (green-blind)
#706635
Tritanopia (blue-blind)
#267467
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #31772f;
/* rgb */ color: rgb(49, 119, 47);
/* oklch */ color: oklch(50.7% 0.128 143.0);
Tailwind
colors: {
  custom: {
    50: '#719f6a',
    500: '#31772f',
    950: '#000000',
  },
}
SCSS
$custom: #31772f;
$custom-light: #719f6a;
$custom-dark: #000000;
JSON
{
  "hex": "#31772f",
  "rgb": {
    "r": 49,
    "g": 119,
    "b": 47
  },
  "hsl": {
    "h": 118.333,
    "s": 43.373,
    "l": 32.549
  },
  "oklch": {
    "l": 0.50732,
    "c": 0.1276,
    "h": 143
  },
  "luminance": 0.14052
}

Semantic roles & 50–950 ramp

primary
#31772F
secondary
#A55BA7
accent
#55D3D0
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #31772F

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

Preview Lab → · Contrast checker → · Palette generator →

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