#31702A#31702A

#31702A is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.7% C 0.122 H 141.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#31702A
RGBrgb(49, 112, 42)
HSLhsl(114, 45%, 30%)
HSVhsv(114, 63%, 44%)
CMYKcmyk(56.3%, 0%, 62.5%, 56.1%)
CIE-LABlab(41.86, -35.13, 32.23)
CIE-LCHlch(41.86, 47.67, 137.47°)
OKLaboklab(48.7% -0.0959 0.0757)
OKLCHoklch(48.7% 0.122 141.7)
XYZxyz(7.4784, 12.4079, 4.1909)
Luminance0.1241 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31702A #692A70
analogous
#54702A #31702A #2A7046
triadic
#31702A #2A3170 #702A31
tetradic
#31702A #2A5470 #692A70 #70462A
square
#31702A #2A5470 #692A70 #70462A
split-complementary
#31702A #462A70 #702A54
monochromatic
#0A1709 #1E4319 #31702A #449D3B #60BF55

Accessibility & contrast

On white

6.03
#31702A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#31702A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31702A
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31702A#FFFFFF#000000##FFFFFF
##31702A1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736623
Deuteranopia (green-blind)
#6A6130
Tritanopia (blue-blind)
#296D61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #31702a;
/* rgb */ color: rgb(49, 112, 42);
/* oklch */ color: oklch(48.7% 0.122 141.7);
Tailwind
colors: {
  custom: {
    50: '#709a66',
    500: '#31702a',
    950: '#000000',
  },
}
SCSS
$custom: #31702a;
$custom-light: #709a66;
$custom-dark: #000000;
JSON
{
  "hex": "#31702a",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 42
  },
  "hsl": {
    "h": 114,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.48698,
    "c": 0.12215,
    "h": 141.7
  },
  "luminance": 0.12408
}

Semantic roles & 50–950 ramp

primary
#31702A
secondary
#9A54A2
accent
#53D5C8
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #31702A

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

Preview Lab → · Contrast checker → · Palette generator →

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