#7F971E#7F971E

#7F971E 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#7F971E
RGBrgb(127, 151, 30)
HSLhsl(72, 67%, 35%)
HSVhsv(72, 80%, 59%)
CMYKcmyk(15.9%, 0%, 80.1%, 40.8%)
CIE-LABlab(58.73, -24.46, 55.67)
CIE-LCHlch(58.73, 60.81, 113.72°)
OKLaboklab(63.59% -0.0727 0.1219)
OKLCHoklch(63.59% 0.142 120.8)
XYZxyz(20.0537, 26.7390, 5.3327)
Luminance0.2674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F971E #361E97
analogous
#97721E #7F971E #42971E
triadic
#7F971E #1E7F97 #971E7F
tetradic
#7F971E #1E9772 #361E97 #971E42
square
#7F971E #1E9772 #361E97 #971E42
split-complementary
#7F971E #1E4297 #721E97
monochromatic
#29310A #546414 #7F971E #AACA28 #C1DD53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F971E#FFFFFF#000000##000000
##7F971E1.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: #7f971e;
/* rgb */ color: rgb(127, 151, 30);
/* oklch */ color: oklch(63.6% 0.142 120.8);
Tailwind
colors: {
  custom: {
    50: '#a8b565',
    500: '#7f971e',
    950: '#000000',
  },
}
SCSS
$custom: #7f971e;
$custom-light: #a8b565;
$custom-dark: #000000;
JSON
{
  "hex": "#7f971e",
  "rgb": {
    "r": 127,
    "g": 151,
    "b": 30
  },
  "hsl": {
    "h": 71.901,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.63591,
    "c": 0.14189,
    "h": 120.8
  },
  "luminance": 0.26739
}

Semantic roles & 50–950 ramp

primary
#7F971E
secondary
#6751C0
accent
#3EEA60
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F971E

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

Preview Lab → · Contrast checker → · Palette generator →

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