#31710F#31710F

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

Color values

HEX#31710F
RGBrgb(49, 113, 15)
HSLhsl(99, 77%, 25%)
HSVhsv(99, 87%, 44%)
CMYKcmyk(56.6%, 0%, 86.7%, 55.7%)
CIE-LABlab(42.00, -37.86, 43.29)
CIE-LCHlch(42.00, 57.51, 131.17°)
OKLaboklab(48.75% -0.1049 0.0953)
OKLCHoklch(48.75% 0.142 137.8)
XYZxyz(7.2577, 12.4971, 2.4816)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31710F #4F0F71
analogous
#62710F #31710F #0F711E
triadic
#31710F #0F3171 #710F31
tetradic
#31710F #0F6271 #4F0F71 #711E0F
square
#31710F #0F6271 #4F0F71 #711E0F
split-complementary
#31710F #1E0F71 #710F62
monochromatic
#0C1B04 #1A3B08 #31710F #48A716 #60DD1D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31710F#FFFFFF#000000##FFFFFF
##31710F1.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)
#6D611C
Tritanopia (blue-blind)
#2C6D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #31710f;
/* rgb */ color: rgb(49, 113, 15);
/* oklch */ color: oklch(48.7% 0.142 137.8);
Tailwind
colors: {
  custom: {
    50: '#719a58',
    500: '#31710f',
    950: '#000000',
  },
}
SCSS
$custom: #31710f;
$custom-light: #719a58;
$custom-dark: #000000;
JSON
{
  "hex": "#31710f",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 15
  },
  "hsl": {
    "h": 99.184,
    "s": 76.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.48746,
    "c": 0.14173,
    "h": 137.8
  },
  "luminance": 0.12498
}

Semantic roles & 50–950 ramp

primary
#31710F
secondary
#8033A9
accent
#35F3B1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #31710F

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

Preview Lab → · Contrast checker → · Palette generator →

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