#7E981C#7E981C

#7E981C is a light, vivid yellow-green. Relative luminance 0.270; OKLCH L 63.7% C 0.144 H 121.5°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7E981C
RGBrgb(126, 152, 28)
HSLhsl(73, 69%, 35%)
HSVhsv(73, 82%, 60%)
CMYKcmyk(17.1%, 0%, 81.6%, 40.4%)
CIE-LABlab(58.95, -25.46, 56.44)
CIE-LCHlch(58.95, 61.91, 114.28°)
OKLaboklab(63.75% -0.0755 0.1232)
OKLCHoklch(63.75% 0.144 121.5)
XYZxyz(20.0424, 26.9759, 5.2494)
Luminance0.2698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E981C #361C98
analogous
#98741C #7E981C #40981C
triadic
#7E981C #1C7E98 #981C7E
tetradic
#7E981C #1C9874 #361C98 #981C40
square
#7E981C #1C9874 #361C98 #981C40
split-complementary
#7E981C #1C4098 #741C98
monochromatic
#283109 #536412 #7E981C #A9CC26 #C1DF50

Accessibility & contrast

On white

3.28
#7E981C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#7E981C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E981C
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E981C#FFFFFF#000000##000000
##7E981C1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28E00
Deuteranopia (green-blind)
#9E8E29
Tritanopia (blue-blind)
#859082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7e981c;
/* rgb */ color: rgb(126, 152, 28);
/* oklch */ color: oklch(63.7% 0.144 121.5);
Tailwind
colors: {
  custom: {
    50: '#a7b665',
    500: '#7e981c',
    950: '#000000',
  },
}
SCSS
$custom: #7e981c;
$custom-light: #a7b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7e981c",
  "rgb": {
    "r": 126,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 72.581,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63748,
    "c": 0.14448,
    "h": 121.5
  },
  "luminance": 0.26976
}

Semantic roles & 50–950 ramp

primary
#7E981C
secondary
#674EC1
accent
#3CEC61
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E981C

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

Preview Lab → · Contrast checker → · Palette generator →

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