#31711A#31711A

#31711A is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.8% C 0.136 H 138.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#31711A
RGBrgb(49, 113, 26)
HSLhsl(104, 63%, 27%)
HSVhsv(104, 77%, 44%)
CMYKcmyk(56.6%, 0%, 77%, 55.7%)
CIE-LABlab(42.06, -37.15, 39.63)
CIE-LCHlch(42.06, 54.32, 133.15°)
OKLaboklab(48.82% -0.1024 0.0893)
OKLCHoklch(48.82% 0.136 138.9)
XYZxyz(7.3579, 12.5372, 3.0093)
Luminance0.1254 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31711A #5A1A71
analogous
#5D711A #31711A #1A712F
triadic
#31711A #1A3171 #711A31
tetradic
#31711A #1A5D71 #5A1A71 #712F1A
square
#31711A #1A5D71 #5A1A71 #712F1A
split-complementary
#31711A #2F1A71 #711A5D
monochromatic
#0B1906 #1B3F0F #31711A #47A325 #5ED035

Accessibility & contrast

On white

5.99
#31711A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #31711A
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31711A#FFFFFF#000000##FFFFFF
##31711A1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756709
Deuteranopia (green-blind)
#6C6123
Tritanopia (blue-blind)
#2B6D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #31711a;
/* rgb */ color: rgb(49, 113, 26);
/* oklch */ color: oklch(48.8% 0.136 138.9);
Tailwind
colors: {
  custom: {
    50: '#719a5d',
    500: '#31711a',
    950: '#000000',
  },
}
SCSS
$custom: #31711a;
$custom-light: #719a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#31711a",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 26
  },
  "hsl": {
    "h": 104.138,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.48817,
    "c": 0.13586,
    "h": 138.9
  },
  "luminance": 0.12538
}

Semantic roles & 50–950 ramp

primary
#31711A
secondary
#8B41A6
accent
#42E6BA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #31711A

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

Preview Lab → · Contrast checker → · Palette generator →

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