#31710E#31710E

#31710E is a mid, vivid yellow-green. Relative luminance 0.125; OKLCH L 48.7% C 0.142 H 137.7°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#31710E
RGBrgb(49, 113, 14)
HSLhsl(99, 78%, 25%)
HSVhsv(99, 88%, 44%)
CMYKcmyk(56.6%, 0%, 87.6%, 55.7%)
CIE-LABlab(41.99, -37.91, 43.56)
CIE-LCHlch(41.99, 57.74, 131.03°)
OKLaboklab(48.74% -0.1051 0.0957)
OKLCHoklch(48.74% 0.142 137.7)
XYZxyz(7.2508, 12.4944, 2.4449)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31710E #4E0E71
analogous
#63710E #31710E #0E711D
triadic
#31710E #0E3171 #710E31
tetradic
#31710E #0E6371 #4E0E71 #711D0E
square
#31710E #0E6371 #4E0E71 #711D0E
split-complementary
#31710E #1D0E71 #710E63
monochromatic
#0C1B03 #193B07 #31710E #49A715 #60DE1B

Accessibility & contrast

On white

6.00
#31710E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#31710E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31710E
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31710E#FFFFFF#000000##FFFFFF
##31710E1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6D611B
Tritanopia (blue-blind)
#2C6D5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #31710e;
/* rgb */ color: rgb(49, 113, 14);
/* oklch */ color: oklch(48.7% 0.142 137.7);
Tailwind
colors: {
  custom: {
    50: '#719a58',
    500: '#31710e',
    950: '#000000',
  },
}
SCSS
$custom: #31710e;
$custom-light: #719a58;
$custom-dark: #000000;
JSON
{
  "hex": "#31710e",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 14
  },
  "hsl": {
    "h": 98.788,
    "s": 77.953,
    "l": 24.902
  },
  "oklch": {
    "l": 0.48741,
    "c": 0.14214,
    "h": 137.7
  },
  "luminance": 0.12495
}

Semantic roles & 50–950 ramp

primary
#31710E
secondary
#7F32A9
accent
#33F4B0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #31710E

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

Preview Lab → · Contrast checker → · Palette generator →

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