#7E981A#7E981A

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

Color values

HEX#7E981A
RGBrgb(126, 152, 26)
HSLhsl(72, 71%, 35%)
HSVhsv(72, 83%, 60%)
CMYKcmyk(17.1%, 0%, 82.9%, 40.4%)
CIE-LABlab(58.94, -25.54, 56.99)
CIE-LCHlch(58.94, 62.45, 114.14°)
OKLaboklab(63.74% -0.0759 0.124)
OKLCHoklch(63.74% 0.145 121.5)
XYZxyz(20.0192, 26.9667, 5.1275)
Luminance0.2697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E981A #341A98
analogous
#98731A #7E981A #3F981A
triadic
#7E981A #1A7E98 #981A7E
tetradic
#7E981A #1A9873 #341A98 #981A3F
square
#7E981A #1A9873 #341A98 #981A3F
split-complementary
#7E981A #1A3F98 #731A98
monochromatic
#272F08 #536411 #7E981A #A9CC23 #C2E04C

Accessibility & contrast

On white

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

On black

6.39
#7E981A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E981A
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E981A#FFFFFF#000000##000000
##7E981A1.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e981a;
/* rgb */ color: rgb(126, 152, 26);
/* oklch */ color: oklch(63.7% 0.145 121.5);
Tailwind
colors: {
  custom: {
    50: '#a7b664',
    500: '#7e981a',
    950: '#000000',
  },
}
SCSS
$custom: #7e981a;
$custom-light: #a7b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7e981a",
  "rgb": {
    "r": 126,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 72.381,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63738,
    "c": 0.14537,
    "h": 121.5
  },
  "luminance": 0.26967
}

Semantic roles & 50–950 ramp

primary
#7E981A
secondary
#644BC2
accent
#3AEE5F
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E981A

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

Preview Lab → · Contrast checker → · Palette generator →

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