#7D971F#7D971F

#7D971F is a light, vivid yellow-green. Relative luminance 0.266; OKLCH L 63.4% C 0.142 H 121.7°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7D971F
RGBrgb(125, 151, 31)
HSLhsl(73, 66%, 36%)
HSVhsv(73, 79%, 59%)
CMYKcmyk(17.2%, 0%, 79.5%, 40.8%)
CIE-LABlab(58.59, -25.27, 55.19)
CIE-LCHlch(58.59, 60.70, 114.60°)
OKLaboklab(63.45% -0.0747 0.1211)
OKLCHoklch(63.45% 0.142 121.7)
XYZxyz(19.7717, 26.5921, 5.3872)
Luminance0.2659 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D971F #391F97
analogous
#97751F #7D971F #41971F
triadic
#7D971F #1F7D97 #971F7D
tetradic
#7D971F #1F9775 #391F97 #971F41
square
#7D971F #1F9775 #391F97 #971F41
split-complementary
#7D971F #1F4197 #751F97
monochromatic
#29310A #536415 #7D971F #A7CA29 #BFDC54

Accessibility & contrast

On white

3.32
#7D971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#7D971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D971F
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D971F#FFFFFF#000000##000000
##7D971F1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18D00
Deuteranopia (green-blind)
#9D8D2B
Tritanopia (blue-blind)
#848F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7d971f;
/* rgb */ color: rgb(125, 151, 31);
/* oklch */ color: oklch(63.4% 0.142 121.7);
Tailwind
colors: {
  custom: {
    50: '#a6b566',
    500: '#7d971f',
    950: '#000000',
  },
}
SCSS
$custom: #7d971f;
$custom-light: #a6b566;
$custom-dark: #000000;
JSON
{
  "hex": "#7d971f",
  "rgb": {
    "r": 125,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 73,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63446,
    "c": 0.14227,
    "h": 121.7
  },
  "luminance": 0.26592
}

Semantic roles & 50–950 ramp

primary
#7D971F
secondary
#6A52BF
accent
#3FE964
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D971F

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

Preview Lab → · Contrast checker → · Palette generator →

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