#31711F#31711F

#31711F is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.9% C 0.132 H 139.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#31711F
RGBrgb(49, 113, 31)
HSLhsl(107, 57%, 28%)
HSVhsv(107, 73%, 44%)
CMYKcmyk(56.6%, 0%, 72.6%, 55.7%)
CIE-LABlab(42.10, -36.73, 37.62)
CIE-LCHlch(42.10, 52.58, 134.31°)
OKLaboklab(48.86% -0.1009 0.0858)
OKLCHoklch(48.86% 0.132 139.6)
XYZxyz(7.4188, 12.5616, 3.3297)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31711F #5F1F71
analogous
#5A711F #31711F #1F7136
triadic
#31711F #1F3171 #711F31
tetradic
#31711F #1F5A71 #5F1F71 #71361F
square
#31711F #1F5A71 #5F1F71 #71361F
split-complementary
#31711F #361F71 #711F5A
monochromatic
#0A1807 #1C4112 #31711F #46A12C #5ECB40

Accessibility & contrast

On white

5.98
#31711F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#31711F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31711F
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31711F#FFFFFF#000000##FFFFFF
##31711F1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746713
Deuteranopia (green-blind)
#6C6127
Tritanopia (blue-blind)
#2A6D61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #31711f;
/* rgb */ color: rgb(49, 113, 31);
/* oklch */ color: oklch(48.9% 0.132 139.6);
Tailwind
colors: {
  custom: {
    50: '#709a60',
    500: '#31711f',
    950: '#000000',
  },
}
SCSS
$custom: #31711f;
$custom-light: #709a60;
$custom-dark: #000000;
JSON
{
  "hex": "#31711f",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 31
  },
  "hsl": {
    "h": 106.829,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4886,
    "c": 0.13246,
    "h": 139.6
  },
  "luminance": 0.12562
}

Semantic roles & 50–950 ramp

primary
#31711F
secondary
#9047A5
accent
#48E0BF
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31711F

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

Preview Lab → · Contrast checker → · Palette generator →

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