#7E971B#7E971B

#7E971B 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#7E971B
RGBrgb(126, 151, 27)
HSLhsl(72, 70%, 35%)
HSVhsv(72, 82%, 59%)
CMYKcmyk(16.6%, 0%, 82.1%, 40.8%)
CIE-LABlab(58.65, -25.01, 56.45)
CIE-LCHlch(58.65, 61.74, 113.90°)
OKLaboklab(63.5% -0.0743 0.123)
OKLCHoklch(63.5% 0.144 121.1)
XYZxyz(19.8690, 26.6480, 5.1335)
Luminance0.2665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E971B #341B97
analogous
#97721B #7E971B #40971B
triadic
#7E971B #1B7E97 #971B7E
tetradic
#7E971B #1B9772 #341B97 #971B40
square
#7E971B #1B9772 #341B97 #971B40
split-complementary
#7E971B #1B4097 #721B97
monochromatic
#272F08 #536312 #7E971B #A9CB24 #C2DF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E971B#FFFFFF#000000##000000
##7E971B1.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: #7e971b;
/* rgb */ color: rgb(126, 151, 27);
/* oklch */ color: oklch(63.5% 0.144 121.1);
Tailwind
colors: {
  custom: {
    50: '#a7b564',
    500: '#7e971b',
    950: '#000000',
  },
}
SCSS
$custom: #7e971b;
$custom-light: #a7b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7e971b",
  "rgb": {
    "r": 126,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 72.097,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63501,
    "c": 0.14375,
    "h": 121.1
  },
  "luminance": 0.26648
}

Semantic roles & 50–950 ramp

primary
#7E971B
secondary
#644CC1
accent
#3BEC5F
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E971B

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

Preview Lab → · Contrast checker → · Palette generator →

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