#7A971F#7A971F

#7A971F is a light, vivid yellow-green. Relative luminance 0.264; OKLCH L 63.2% C 0.144 H 122.9°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7A971F
RGBrgb(122, 151, 31)
HSLhsl(75, 66%, 36%)
HSVhsv(75, 79%, 59%)
CMYKcmyk(19.2%, 0%, 79.5%, 40.8%)
CIE-LABlab(58.39, -26.54, 54.92)
CIE-LCHlch(58.39, 61.00, 115.79°)
OKLaboklab(63.22% -0.078 0.1206)
OKLCHoklch(63.22% 0.144 122.9)
XYZxyz(19.3402, 26.3696, 5.3670)
Luminance0.2637 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A971F #3C1F97
analogous
#97781F #7A971F #3E971F
triadic
#7A971F #1F7A97 #971F7A
tetradic
#7A971F #1F9778 #3C1F97 #971F3E
square
#7A971F #1F9778 #3C1F97 #971F3E
split-complementary
#7A971F #1F3E97 #781F97
monochromatic
#28310A #516415 #7A971F #A3CA29 #BBDC54

Accessibility & contrast

On white

3.35
#7A971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#7A971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A971F
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A971F#FFFFFF#000000##000000
##7A971F1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D00
Deuteranopia (green-blind)
#9C8C2B
Tritanopia (blue-blind)
#818F81
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #7a971f;
/* rgb */ color: rgb(122, 151, 31);
/* oklch */ color: oklch(63.2% 0.144 122.9);
Tailwind
colors: {
  custom: {
    50: '#a4b566',
    500: '#7a971f',
    950: '#000000',
  },
}
SCSS
$custom: #7a971f;
$custom-light: #a4b566;
$custom-dark: #000000;
JSON
{
  "hex": "#7a971f",
  "rgb": {
    "r": 122,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 74.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63224,
    "c": 0.14364,
    "h": 122.9
  },
  "luminance": 0.2637
}

Semantic roles & 50–950 ramp

primary
#7A971F
secondary
#6D52BF
accent
#3FE968
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7A971F

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

Preview Lab → · Contrast checker → · Palette generator →

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