#31771C#31771C

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

Color values

HEX#31771C
RGBrgb(49, 119, 28)
HSLhsl(106, 62%, 29%)
HSVhsv(106, 76%, 47%)
CMYKcmyk(58.8%, 0%, 76.5%, 53.3%)
CIE-LABlab(44.13, -39.41, 40.93)
CIE-LCHlch(44.13, 56.82, 133.91°)
OKLaboklab(50.53% -0.1083 0.0923)
OKLCHoklch(50.53% 0.142 139.6)
XYZxyz(8.0727, 13.9298, 3.3617)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31771C #621C77
analogous
#5F771C #31771C #1C7735
triadic
#31771C #1C3177 #771C31
tetradic
#31771C #1C5F77 #621C77 #77351C
square
#31771C #1C5F77 #621C77 #77351C
split-complementary
#31771C #351C77 #771C5F
monochromatic
#0A1906 #1D4510 #31771C #45A928 #5FD13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #31771c;
/* rgb */ color: rgb(49, 119, 28);
/* oklch */ color: oklch(50.5% 0.142 139.6);
Tailwind
colors: {
  custom: {
    50: '#729f5f',
    500: '#31771c',
    950: '#000000',
  },
}
SCSS
$custom: #31771c;
$custom-light: #729f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#31771c",
  "rgb": {
    "r": 49,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 106.154,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50532,
    "c": 0.14233,
    "h": 139.6
  },
  "luminance": 0.1393
}

Semantic roles & 50–950 ramp

primary
#31771C
secondary
#9344AB
accent
#43E5C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31771C

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

Preview Lab → · Contrast checker → · Palette generator →

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