#7F971F#7F971F

#7F971F is a light, vivid yellow-green. Relative luminance 0.267; OKLCH L 63.6% C 0.141 H 120.8°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7F971F
RGBrgb(127, 151, 31)
HSLhsl(72, 66%, 36%)
HSVhsv(72, 79%, 59%)
CMYKcmyk(15.9%, 0%, 79.5%, 40.8%)
CIE-LABlab(58.74, -24.42, 55.37)
CIE-LCHlch(58.74, 60.51, 113.80°)
OKLaboklab(63.6% -0.0725 0.1214)
OKLCHoklch(63.6% 0.141 120.8)
XYZxyz(20.0667, 26.7442, 5.4011)
Luminance0.2674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F971F #371F97
analogous
#97731F #7F971F #43971F
triadic
#7F971F #1F7F97 #971F7F
tetradic
#7F971F #1F9773 #371F97 #971F43
square
#7F971F #1F9773 #371F97 #971F43
split-complementary
#7F971F #1F4397 #731F97
monochromatic
#2A310A #546415 #7F971F #AACA29 #C1DC54

Accessibility & contrast

On white

3.31
#7F971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#7F971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F971F
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F971F#FFFFFF#000000##000000
##7F971F1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#9E8D2B
Tritanopia (blue-blind)
#868F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7f971f;
/* rgb */ color: rgb(127, 151, 31);
/* oklch */ color: oklch(63.6% 0.141 120.8);
Tailwind
colors: {
  custom: {
    50: '#a8b566',
    500: '#7f971f',
    950: '#000000',
  },
}
SCSS
$custom: #7f971f;
$custom-light: #a8b566;
$custom-dark: #000000;
JSON
{
  "hex": "#7f971f",
  "rgb": {
    "r": 127,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 72,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63597,
    "c": 0.14139,
    "h": 120.8
  },
  "luminance": 0.26744
}

Semantic roles & 50–950 ramp

primary
#7F971F
secondary
#6852BF
accent
#3FE961
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F971F

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

Preview Lab → · Contrast checker → · Palette generator →

#7F971F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva