#31701B#31701B

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

Color values

HEX#31701B
RGBrgb(49, 112, 27)
HSLhsl(104, 61%, 27%)
HSVhsv(104, 76%, 44%)
CMYKcmyk(56.3%, 0%, 75.9%, 56.1%)
CIE-LABlab(41.72, -36.66, 38.90)
CIE-LCHlch(41.72, 53.45, 133.31°)
OKLaboklab(48.54% -0.101 0.0879)
OKLCHoklch(48.54% 0.134 139)
XYZxyz(7.2583, 12.3199, 3.0322)
Luminance0.1232 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31701B #5A1B70
analogous
#5B701B #31701B #1B7030
triadic
#31701B #1B3170 #701B31
tetradic
#31701B #1B5B70 #5A1B70 #70301B
square
#31701B #1B5B70 #5A1B70 #70301B
split-complementary
#31701B #301B70 #701B5B
monochromatic
#0B1906 #1B3F0F #31701B #47A127 #5ECF37

Accessibility & contrast

On white

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

On black

3.46
#31701B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##31701B#FFFFFF#000000##FFFFFF
##31701B1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31701b;
/* rgb */ color: rgb(49, 112, 27);
/* oklch */ color: oklch(48.5% 0.134 139.0);
Tailwind
colors: {
  custom: {
    50: '#709a5d',
    500: '#31701b',
    950: '#000000',
  },
}
SCSS
$custom: #31701b;
$custom-light: #709a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#31701b",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 104.471,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.48541,
    "c": 0.13391,
    "h": 139
  },
  "luminance": 0.1232
}

Semantic roles & 50–950 ramp

primary
#31701B
secondary
#8B42A5
accent
#44E4BB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #31701B

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

Preview Lab → · Contrast checker → · Palette generator →

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