#7E971F#7E971F

#7E971F is a light, vivid yellow-green. Relative luminance 0.267; OKLCH L 63.5% C 0.142 H 121.3°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7E971F
RGBrgb(126, 151, 31)
HSLhsl(73, 66%, 36%)
HSVhsv(73, 79%, 59%)
CMYKcmyk(16.6%, 0%, 79.5%, 40.8%)
CIE-LABlab(58.67, -24.84, 55.28)
CIE-LCHlch(58.67, 60.61, 114.20°)
OKLaboklab(63.52% -0.0736 0.1212)
OKLCHoklch(63.52% 0.142 121.3)
XYZxyz(19.9185, 26.6678, 5.3941)
Luminance0.2667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E971F #381F97
analogous
#97741F #7E971F #42971F
triadic
#7E971F #1F7E97 #971F7E
tetradic
#7E971F #1F9774 #381F97 #971F42
square
#7E971F #1F9774 #381F97 #971F42
split-complementary
#7E971F #1F4297 #741F97
monochromatic
#29310A #546415 #7E971F #A8CA29 #C0DC54

Accessibility & contrast

On white

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

On black

6.33
#7E971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E971F
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E971F#FFFFFF#000000##000000
##7E971F1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#9E8D2B
Tritanopia (blue-blind)
#858F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7e971f;
/* rgb */ color: rgb(126, 151, 31);
/* oklch */ color: oklch(63.5% 0.142 121.3);
Tailwind
colors: {
  custom: {
    50: '#a7b566',
    500: '#7e971f',
    950: '#000000',
  },
}
SCSS
$custom: #7e971f;
$custom-light: #a7b566;
$custom-dark: #000000;
JSON
{
  "hex": "#7e971f",
  "rgb": {
    "r": 126,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 72.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63521,
    "c": 0.14183,
    "h": 121.3
  },
  "luminance": 0.26668
}

Semantic roles & 50–950 ramp

primary
#7E971F
secondary
#6952BF
accent
#3FE962
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E971F

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

Preview Lab → · Contrast checker → · Palette generator →

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