#31720F#31720F

#31720F is a mid, vivid yellow-green. Relative luminance 0.127; OKLCH L 49.0% C 0.143 H 137.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#31720F
RGBrgb(49, 114, 15)
HSLhsl(99, 77%, 25%)
HSVhsv(99, 87%, 45%)
CMYKcmyk(57%, 0%, 86.8%, 55.3%)
CIE-LABlab(42.34, -38.26, 43.60)
CIE-LCHlch(42.34, 58.00, 131.27°)
OKLaboklab(49.03% -0.106 0.0959)
OKLCHoklch(49.03% 0.143 137.9)
XYZxyz(7.3699, 12.7215, 2.5190)
Luminance0.1272 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31720F #500F72
analogous
#62720F #31720F #0F721F
triadic
#31720F #0F3172 #720F31
tetradic
#31720F #0F6272 #500F72 #721F0F
square
#31720F #0F6272 #500F72 #721F0F
split-complementary
#31720F #1F0F72 #720F62
monochromatic
#0C1B04 #1A3C08 #31720F #48A816 #5FDE1D

Accessibility & contrast

On white

5.92
#31720F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#31720F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31720F
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31720F#FFFFFF#000000##FFFFFF
##31720F1.005.923.545.92
#FFFFFF5.921.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6E621C
Tritanopia (blue-blind)
#2C6E60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #31720f;
/* rgb */ color: rgb(49, 114, 15);
/* oklch */ color: oklch(49.0% 0.143 137.9);
Tailwind
colors: {
  custom: {
    50: '#719b58',
    500: '#31720f',
    950: '#000000',
  },
}
SCSS
$custom: #31720f;
$custom-light: #719b58;
$custom-dark: #000000;
JSON
{
  "hex": "#31720f",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 15
  },
  "hsl": {
    "h": 99.394,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.49031,
    "c": 0.14296,
    "h": 137.9
  },
  "luminance": 0.12722
}

Semantic roles & 50–950 ramp

primary
#31720F
secondary
#8133AA
accent
#35F3B2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #31720F

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

Preview Lab → · Contrast checker → · Palette generator →

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