#7D971D#7D971D

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

Color values

HEX#7D971D
RGBrgb(125, 151, 29)
HSLhsl(73, 68%, 35%)
HSVhsv(73, 81%, 59%)
CMYKcmyk(17.2%, 0%, 80.8%, 40.8%)
CIE-LABlab(58.59, -25.36, 55.79)
CIE-LCHlch(58.59, 61.28, 114.44°)
OKLaboklab(63.43% -0.0751 0.122)
OKLCHoklch(63.43% 0.143 121.6)
XYZxyz(19.7462, 26.5819, 5.2527)
Luminance0.2658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D971D #371D97
analogous
#97741D #7D971D #40971D
triadic
#7D971D #1D7D97 #971D7D
tetradic
#7D971D #1D9774 #371D97 #971D40
square
#7D971D #1D9774 #371D97 #971D40
split-complementary
#7D971D #1D4097 #741D97
monochromatic
#283009 #526413 #7D971D #A7CA27 #C0DE51

Accessibility & contrast

On white

3.32
#7D971D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#7D971D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D971D
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D971D#FFFFFF#000000##000000
##7D971D1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d971d;
/* rgb */ color: rgb(125, 151, 29);
/* oklch */ color: oklch(63.4% 0.143 121.6);
Tailwind
colors: {
  custom: {
    50: '#a6b565',
    500: '#7d971d',
    950: '#000000',
  },
}
SCSS
$custom: #7d971d;
$custom-light: #a6b565;
$custom-dark: #000000;
JSON
{
  "hex": "#7d971d",
  "rgb": {
    "r": 125,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 72.787,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63435,
    "c": 0.14327,
    "h": 121.6
  },
  "luminance": 0.26582
}

Semantic roles & 50–950 ramp

primary
#7D971D
secondary
#674FC0
accent
#3DEB62
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D971D

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

Preview Lab → · Contrast checker → · Palette generator →

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