#7E971C#7E971C

#7E971C 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#7E971C
RGBrgb(126, 151, 28)
HSLhsl(72, 69%, 35%)
HSVhsv(72, 81%, 59%)
CMYKcmyk(16.6%, 0%, 81.5%, 40.8%)
CIE-LABlab(58.65, -24.97, 56.17)
CIE-LCHlch(58.65, 61.47, 113.97°)
OKLaboklab(63.51% -0.0742 0.1226)
OKLCHoklch(63.51% 0.143 121.2)
XYZxyz(19.8808, 26.6527, 5.1955)
Luminance0.2665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E971C #351C97
analogous
#97721C #7E971C #41971C
triadic
#7E971C #1C7E97 #971C7E
tetradic
#7E971C #1C9772 #351C97 #971C41
square
#7E971C #1C9772 #351C97 #971C41
split-complementary
#7E971C #1C4197 #721C97
monochromatic
#283009 #536312 #7E971C #A9CB26 #C1DE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7e971c;
/* rgb */ color: rgb(126, 151, 28);
/* oklch */ color: oklch(63.5% 0.143 121.2);
Tailwind
colors: {
  custom: {
    50: '#a7b564',
    500: '#7e971c',
    950: '#000000',
  },
}
SCSS
$custom: #7e971c;
$custom-light: #a7b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7e971c",
  "rgb": {
    "r": 126,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 72.195,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63505,
    "c": 0.14329,
    "h": 121.2
  },
  "luminance": 0.26653
}

Semantic roles & 50–950 ramp

primary
#7E971C
secondary
#654EC1
accent
#3CEC60
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E971C

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

Preview Lab → · Contrast checker → · Palette generator →

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