#31701A#31701A

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

Color values

HEX#31701A
RGBrgb(49, 112, 26)
HSLhsl(104, 62%, 27%)
HSVhsv(104, 77%, 44%)
CMYKcmyk(56.3%, 0%, 76.8%, 56.1%)
CIE-LABlab(41.71, -36.74, 39.28)
CIE-LCHlch(41.71, 53.79, 133.08°)
OKLaboklab(48.53% -0.1013 0.0886)
OKLCHoklch(48.53% 0.135 138.8)
XYZxyz(7.2470, 12.3153, 2.9723)
Luminance0.1232 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31701A #591A70
analogous
#5C701A #31701A #1A702E
triadic
#31701A #1A3170 #701A31
tetradic
#31701A #1A5C70 #591A70 #702E1A
square
#31701A #1A5C70 #591A70 #702E1A
split-complementary
#31701A #2E1A70 #701A5C
monochromatic
#0B1906 #1B3E0E #31701A #47A226 #5ED034

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31701A#FFFFFF#000000##FFFFFF
##31701A1.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)
#74660A
Deuteranopia (green-blind)
#6B6023
Tritanopia (blue-blind)
#2B6C5F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #31701a;
/* rgb */ color: rgb(49, 112, 26);
/* oklch */ color: oklch(48.5% 0.135 138.8);
Tailwind
colors: {
  custom: {
    50: '#719a5d',
    500: '#31701a',
    950: '#000000',
  },
}
SCSS
$custom: #31701a;
$custom-light: #719a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#31701a",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 26
  },
  "hsl": {
    "h": 103.953,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48533,
    "c": 0.13455,
    "h": 138.8
  },
  "luminance": 0.12316
}

Semantic roles & 50–950 ramp

primary
#31701A
secondary
#8A41A5
accent
#42E5BA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #31701A

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

Preview Lab → · Contrast checker → · Palette generator →

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