#7E971D#7E971D

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

Color values

HEX#7E971D
RGBrgb(126, 151, 29)
HSLhsl(72, 68%, 35%)
HSVhsv(72, 81%, 59%)
CMYKcmyk(16.6%, 0%, 80.8%, 40.8%)
CIE-LABlab(58.66, -24.93, 55.88)
CIE-LCHlch(58.66, 61.19, 114.04°)
OKLaboklab(63.51% -0.074 0.1222)
OKLCHoklch(63.51% 0.143 121.2)
XYZxyz(19.8929, 26.6576, 5.2596)
Luminance0.2666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E971D #361D97
analogous
#97731D #7E971D #41971D
triadic
#7E971D #1D7E97 #971D7E
tetradic
#7E971D #1D9773 #361D97 #971D41
square
#7E971D #1D9773 #361D97 #971D41
split-complementary
#7E971D #1D4197 #731D97
monochromatic
#283009 #536413 #7E971D #A9CA27 #C1DE51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E971D#FFFFFF#000000##000000
##7E971D1.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)
#9E8D2A
Tritanopia (blue-blind)
#858F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7e971d;
/* rgb */ color: rgb(126, 151, 29);
/* oklch */ color: oklch(63.5% 0.143 121.2);
Tailwind
colors: {
  custom: {
    50: '#a7b565',
    500: '#7e971d',
    950: '#000000',
  },
}
SCSS
$custom: #7e971d;
$custom-light: #a7b565;
$custom-dark: #000000;
JSON
{
  "hex": "#7e971d",
  "rgb": {
    "r": 126,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 72.295,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63511,
    "c": 0.14281,
    "h": 121.2
  },
  "luminance": 0.26658
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E971D

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

Preview Lab → · Contrast checker → · Palette generator →

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