#31701F#31701F

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

Color values

HEX#31701F
RGBrgb(49, 112, 31)
HSLhsl(107, 57%, 28%)
HSVhsv(107, 72%, 44%)
CMYKcmyk(56.3%, 0%, 72.3%, 56.1%)
CIE-LABlab(41.75, -36.32, 37.26)
CIE-LCHlch(41.75, 52.03, 134.26°)
OKLaboklab(48.58% -0.0998 0.0851)
OKLCHoklch(48.58% 0.131 139.6)
XYZxyz(7.3078, 12.3397, 3.2928)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31701F #5E1F70
analogous
#59701F #31701F #1F7036
triadic
#31701F #1F3170 #701F31
tetradic
#31701F #1F5970 #5E1F70 #70361F
square
#31701F #1F5970 #5E1F70 #70361F
split-complementary
#31701F #361F70 #701F59
monochromatic
#0A1807 #1C4012 #31701F #46A02C #5ECA3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31701F#FFFFFF#000000##FFFFFF
##31701F1.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)
#736613
Deuteranopia (green-blind)
#6B6027
Tritanopia (blue-blind)
#2B6C60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #31701f;
/* rgb */ color: rgb(49, 112, 31);
/* oklch */ color: oklch(48.6% 0.131 139.6);
Tailwind
colors: {
  custom: {
    50: '#709a60',
    500: '#31701f',
    950: '#000000',
  },
}
SCSS
$custom: #31701f;
$custom-light: #709a60;
$custom-dark: #000000;
JSON
{
  "hex": "#31701f",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 106.667,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.48576,
    "c": 0.13113,
    "h": 139.6
  },
  "luminance": 0.1234
}

Semantic roles & 50–950 ramp

primary
#31701F
secondary
#8F47A4
accent
#48E0BE
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31701F

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

Preview Lab → · Contrast checker → · Palette generator →

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