#31712E#31712E

#31712E is a mid, moderate green. Relative luminance 0.127; OKLCH L 49.0% C 0.120 H 142.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#31712E
RGBrgb(49, 113, 46)
HSLhsl(117, 42%, 31%)
HSVhsv(117, 59%, 44%)
CMYKcmyk(56.6%, 0%, 59.3%, 55.7%)
CIE-LABlab(42.25, -35.05, 30.65)
CIE-LCHlch(42.25, 46.56, 138.83°)
OKLaboklab(49.03% -0.0954 0.0727)
OKLCHoklch(49.03% 0.12 142.7)
XYZxyz(7.6645, 12.6598, 4.6239)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31712E #6E2E71
analogous
#52712E #31712E #2E714C
triadic
#31712E #2E3171 #712E31
tetradic
#31712E #2E5271 #6E2E71 #714C2E
square
#31712E #2E5271 #6E2E71 #714C2E
split-complementary
#31712E #4C2E71 #712E52
monochromatic
#0B1A0B #1E461C #31712E #449C40 #61BD5D

Accessibility & contrast

On white

5.95
#31712E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#31712E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31712E
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31712E#FFFFFF#000000##FFFFFF
##31712E1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736727
Deuteranopia (green-blind)
#6B6233
Tritanopia (blue-blind)
#286E62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #31712e;
/* rgb */ color: rgb(49, 113, 46);
/* oklch */ color: oklch(49.0% 0.120 142.7);
Tailwind
colors: {
  custom: {
    50: '#709a69',
    500: '#31712e',
    950: '#000000',
  },
}
SCSS
$custom: #31712e;
$custom-light: #709a69;
$custom-dark: #000000;
JSON
{
  "hex": "#31712e",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 46
  },
  "hsl": {
    "h": 117.313,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.49033,
    "c": 0.11993,
    "h": 142.7
  },
  "luminance": 0.1266
}

Semantic roles & 50–950 ramp

primary
#31712E
secondary
#9F58A2
accent
#56D2CC
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080E06
muted
#7B7E7A

Preview Lab

Preview with #31712E

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

Preview Lab → · Contrast checker → · Palette generator →

#31712E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva