#7F971D#7F971D

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

Color values

HEX#7F971D
RGBrgb(127, 151, 29)
HSLhsl(72, 68%, 35%)
HSVhsv(72, 81%, 59%)
CMYKcmyk(15.9%, 0%, 80.8%, 40.8%)
CIE-LABlab(58.73, -24.50, 55.97)
CIE-LCHlch(58.73, 61.10, 113.64°)
OKLaboklab(63.59% -0.0729 0.1223)
OKLCHoklch(63.59% 0.142 120.8)
XYZxyz(20.0412, 26.7340, 5.2665)
Luminance0.2673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F971D #351D97
analogous
#97721D #7F971D #42971D
triadic
#7F971D #1D7F97 #971D7F
tetradic
#7F971D #1D9772 #351D97 #971D42
square
#7F971D #1D9772 #351D97 #971D42
split-complementary
#7F971D #1D4297 #721D97
monochromatic
#293009 #546413 #7F971D #AACA27 #C2DE51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F971D#FFFFFF#000000##000000
##7F971D1.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)
#9E8D2A
Tritanopia (blue-blind)
#878F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7f971d;
/* rgb */ color: rgb(127, 151, 29);
/* oklch */ color: oklch(63.6% 0.142 120.8);
Tailwind
colors: {
  custom: {
    50: '#a8b565',
    500: '#7f971d',
    950: '#000000',
  },
}
SCSS
$custom: #7f971d;
$custom-light: #a8b565;
$custom-dark: #000000;
JSON
{
  "hex": "#7f971d",
  "rgb": {
    "r": 127,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 71.803,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63586,
    "c": 0.14238,
    "h": 120.8
  },
  "luminance": 0.26734
}

Semantic roles & 50–950 ramp

primary
#7F971D
secondary
#664FC0
accent
#3DEB5F
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F971D

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

Preview Lab → · Contrast checker → · Palette generator →

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