#7D971A#7D971A

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

Color values

HEX#7D971A
RGBrgb(125, 151, 26)
HSLhsl(72, 71%, 35%)
HSVhsv(72, 83%, 59%)
CMYKcmyk(17.2%, 0%, 82.8%, 40.8%)
CIE-LABlab(58.57, -25.48, 56.64)
CIE-LCHlch(58.57, 62.10, 114.22°)
OKLaboklab(63.42% -0.0756 0.1233)
OKLCHoklch(63.42% 0.145 121.5)
XYZxyz(19.7109, 26.5678, 5.0668)
Luminance0.2657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D971A #341A97
analogous
#97731A #7D971A #3F971A
triadic
#7D971A #1A7D97 #971A7D
tetradic
#7D971A #1A9773 #341A97 #971A3F
square
#7D971A #1A9773 #341A97 #971A3F
split-complementary
#7D971A #1A3F97 #731A97
monochromatic
#272F08 #526311 #7D971A #A8CB23 #C1E04B

Accessibility & contrast

On white

3.33
#7D971A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#7D971A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D971A
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D971A#FFFFFF#000000##000000
##7D971A1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d971a;
/* rgb */ color: rgb(125, 151, 26);
/* oklch */ color: oklch(63.4% 0.145 121.5);
Tailwind
colors: {
  custom: {
    50: '#a6b564',
    500: '#7d971a',
    950: '#000000',
  },
}
SCSS
$custom: #7d971a;
$custom-light: #a6b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7d971a",
  "rgb": {
    "r": 125,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 72.48,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.63421,
    "c": 0.14464,
    "h": 121.5
  },
  "luminance": 0.26568
}

Semantic roles & 50–950 ramp

primary
#7D971A
secondary
#644BC2
accent
#3AED60
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D971A

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

Preview Lab → · Contrast checker → · Palette generator →

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