#7D971B#7D971B

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

Color values

HEX#7D971B
RGBrgb(125, 151, 27)
HSLhsl(73, 70%, 35%)
HSVhsv(73, 82%, 59%)
CMYKcmyk(17.2%, 0%, 82.1%, 40.8%)
CIE-LABlab(58.58, -25.44, 56.36)
CIE-LCHlch(58.58, 61.83, 114.29°)
OKLaboklab(63.43% -0.0754 0.1229)
OKLCHoklch(63.43% 0.144 121.6)
XYZxyz(19.7222, 26.5723, 5.1267)
Luminance0.2657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D971B #351B97
analogous
#97731B #7D971B #3F971B
triadic
#7D971B #1B7D97 #971B7D
tetradic
#7D971B #1B9773 #351B97 #971B3F
square
#7D971B #1B9773 #351B97 #971B3F
split-complementary
#7D971B #1B3F97 #731B97
monochromatic
#272F08 #526312 #7D971B #A8CB24 #C1DF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D971B#FFFFFF#000000##000000
##7D971B1.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: #7d971b;
/* rgb */ color: rgb(125, 151, 27);
/* oklch */ color: oklch(63.4% 0.144 121.6);
Tailwind
colors: {
  custom: {
    50: '#a6b564',
    500: '#7d971b',
    950: '#000000',
  },
}
SCSS
$custom: #7d971b;
$custom-light: #a6b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7d971b",
  "rgb": {
    "r": 125,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 72.581,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63425,
    "c": 0.14419,
    "h": 121.6
  },
  "luminance": 0.26572
}

Semantic roles & 50–950 ramp

primary
#7D971B
secondary
#654CC1
accent
#3BEC60
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7D971B

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

Preview Lab → · Contrast checker → · Palette generator →

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