#7E971A#7E971A

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

Color values

HEX#7E971A
RGBrgb(126, 151, 26)
HSLhsl(72, 71%, 35%)
HSVhsv(72, 83%, 59%)
CMYKcmyk(16.6%, 0%, 82.8%, 40.8%)
CIE-LABlab(58.64, -25.05, 56.72)
CIE-LCHlch(58.64, 62.01, 113.83°)
OKLaboklab(63.5% -0.0745 0.1235)
OKLCHoklch(63.5% 0.144 121.1)
XYZxyz(19.8576, 26.6434, 5.0736)
Luminance0.2664 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E971A #331A97
analogous
#97721A #7E971A #40971A
triadic
#7E971A #1A7E97 #971A7E
tetradic
#7E971A #1A9772 #331A97 #971A40
square
#7E971A #1A9772 #331A97 #971A40
split-complementary
#7E971A #1A4097 #721A97
monochromatic
#272F08 #526311 #7E971A #AACB23 #C2E04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E971A#FFFFFF#000000##000000
##7E971A1.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)
#A18D00
Deuteranopia (green-blind)
#9E8D28
Tritanopia (blue-blind)
#858F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7e971a;
/* rgb */ color: rgb(126, 151, 26);
/* oklch */ color: oklch(63.5% 0.144 121.1);
Tailwind
colors: {
  custom: {
    50: '#a7b564',
    500: '#7e971a',
    950: '#000000',
  },
}
SCSS
$custom: #7e971a;
$custom-light: #a7b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7e971a",
  "rgb": {
    "r": 126,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 72,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.63496,
    "c": 0.14419,
    "h": 121.1
  },
  "luminance": 0.26643
}

Semantic roles & 50–950 ramp

primary
#7E971A
secondary
#634BC2
accent
#3AED5E
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E971A

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

Preview Lab → · Contrast checker → · Palette generator →

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