#7E981D#7E981D

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

Color values

HEX#7E981D
RGBrgb(126, 152, 29)
HSLhsl(73, 68%, 35%)
HSVhsv(73, 81%, 60%)
CMYKcmyk(17.1%, 0%, 80.9%, 40.4%)
CIE-LABlab(58.96, -25.42, 56.15)
CIE-LCHlch(58.96, 61.64, 114.36°)
OKLaboklab(63.75% -0.0753 0.1227)
OKLCHoklch(63.75% 0.144 121.5)
XYZxyz(20.0545, 26.9808, 5.3135)
Luminance0.2698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E981D #371D98
analogous
#98741D #7E981D #40981D
triadic
#7E981D #1D7E98 #981D7E
tetradic
#7E981D #1D9874 #371D98 #981D40
square
#7E981D #1D9874 #371D98 #981D40
split-complementary
#7E981D #1D4098 #741D98
monochromatic
#293109 #536513 #7E981D #A9CB27 #C0DE52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E981D#FFFFFF#000000##000000
##7E981D1.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)
#9E8E2A
Tritanopia (blue-blind)
#859082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7e981d;
/* rgb */ color: rgb(126, 152, 29);
/* oklch */ color: oklch(63.8% 0.144 121.5);
Tailwind
colors: {
  custom: {
    50: '#a7b665',
    500: '#7e981d',
    950: '#000000',
  },
}
SCSS
$custom: #7e981d;
$custom-light: #a7b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7e981d",
  "rgb": {
    "r": 126,
    "g": 152,
    "b": 29
  },
  "hsl": {
    "h": 72.683,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.63753,
    "c": 0.14401,
    "h": 121.5
  },
  "luminance": 0.26981
}

Semantic roles & 50–950 ramp

primary
#7E981D
secondary
#6850C1
accent
#3DEB62
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E981D

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

Preview Lab → · Contrast checker → · Palette generator →

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