#7F971C#7F971C

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

Color values

HEX#7F971C
RGBrgb(127, 151, 28)
HSLhsl(72, 69%, 35%)
HSVhsv(72, 81%, 59%)
CMYKcmyk(15.9%, 0%, 81.5%, 40.8%)
CIE-LABlab(58.72, -24.54, 56.26)
CIE-LCHlch(58.72, 61.38, 113.57°)
OKLaboklab(63.58% -0.073 0.1228)
OKLCHoklch(63.58% 0.143 120.8)
XYZxyz(20.0290, 26.7291, 5.2025)
Luminance0.2673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F971C #341C97
analogous
#97711C #7F971C #42971C
triadic
#7F971C #1C7F97 #971C7F
tetradic
#7F971C #1C9771 #341C97 #971C42
square
#7F971C #1C9771 #341C97 #971C42
split-complementary
#7F971C #1C4297 #711C97
monochromatic
#283009 #546312 #7F971C #AACB26 #C2DE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7f971c;
/* rgb */ color: rgb(127, 151, 28);
/* oklch */ color: oklch(63.6% 0.143 120.8);
Tailwind
colors: {
  custom: {
    50: '#a8b565',
    500: '#7f971c',
    950: '#000000',
  },
}
SCSS
$custom: #7f971c;
$custom-light: #a8b565;
$custom-dark: #000000;
JSON
{
  "hex": "#7f971c",
  "rgb": {
    "r": 127,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 71.707,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63581,
    "c": 0.14285,
    "h": 120.8
  },
  "luminance": 0.26729
}

Semantic roles & 50–950 ramp

primary
#7F971C
secondary
#644EC1
accent
#3CEC5E
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F971C

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

Preview Lab → · Contrast checker → · Palette generator →

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