#31701C#31701C

#31701C is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.5% C 0.133 H 139.1°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#31701C
RGBrgb(49, 112, 28)
HSLhsl(105, 60%, 27%)
HSVhsv(105, 75%, 44%)
CMYKcmyk(56.3%, 0%, 75%, 56.1%)
CIE-LABlab(41.73, -36.58, 38.50)
CIE-LCHlch(41.73, 53.11, 133.54°)
OKLaboklab(48.55% -0.1007 0.0872)
OKLCHoklch(48.55% 0.133 139.1)
XYZxyz(7.2701, 12.3246, 3.0942)
Luminance0.1232 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31701C #5B1C70
analogous
#5B701C #31701C #1C7031
triadic
#31701C #1C3170 #701C31
tetradic
#31701C #1C5B70 #5B1C70 #70311C
square
#31701C #1C5B70 #5B1C70 #70311C
split-complementary
#31701C #311C70 #701C5B
monochromatic
#0B1806 #1C3F10 #31701C #46A128 #5ECD39

Accessibility & contrast

On white

6.06
#31701C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#31701C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31701C
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31701C#FFFFFF#000000##FFFFFF
##31701C1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73660E
Deuteranopia (green-blind)
#6B6024
Tritanopia (blue-blind)
#2B6C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #31701c;
/* rgb */ color: rgb(49, 112, 28);
/* oklch */ color: oklch(48.5% 0.133 139.1);
Tailwind
colors: {
  custom: {
    50: '#709a5e',
    500: '#31701c',
    950: '#000000',
  },
}
SCSS
$custom: #31701c;
$custom-light: #709a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#31701c",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 28
  },
  "hsl": {
    "h": 105,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.48549,
    "c": 0.13324,
    "h": 139.1
  },
  "luminance": 0.12325
}

Semantic roles & 50–950 ramp

primary
#31701C
secondary
#8C43A5
accent
#45E3BC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31701C

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

Preview Lab → · Contrast checker → · Palette generator →

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