#7E981E#7E981E

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

Color values

HEX#7E981E
RGBrgb(126, 152, 30)
HSLhsl(73, 67%, 36%)
HSVhsv(73, 80%, 60%)
CMYKcmyk(17.1%, 0%, 80.3%, 40.4%)
CIE-LABlab(58.96, -25.38, 55.85)
CIE-LCHlch(58.96, 61.35, 114.44°)
OKLaboklab(63.76% -0.0751 0.1223)
OKLCHoklch(63.76% 0.144 121.6)
XYZxyz(20.0671, 26.9858, 5.3797)
Luminance0.2699 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E981E #381E98
analogous
#98751E #7E981E #41981E
triadic
#7E981E #1E7E98 #981E7E
tetradic
#7E981E #1E9875 #381E98 #981E41
square
#7E981E #1E9875 #381E98 #981E41
split-complementary
#7E981E #1E4198 #751E98
monochromatic
#29320A #546514 #7E981E #A8CB28 #C0DD53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E981E#FFFFFF#000000##000000
##7E981E1.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: #7e981e;
/* rgb */ color: rgb(126, 152, 30);
/* oklch */ color: oklch(63.8% 0.144 121.6);
Tailwind
colors: {
  custom: {
    50: '#a7b665',
    500: '#7e981e',
    950: '#000000',
  },
}
SCSS
$custom: #7e981e;
$custom-light: #a7b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7e981e",
  "rgb": {
    "r": 126,
    "g": 152,
    "b": 30
  },
  "hsl": {
    "h": 72.787,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63758,
    "c": 0.14353,
    "h": 121.6
  },
  "luminance": 0.26986
}

Semantic roles & 50–950 ramp

primary
#7E981E
secondary
#6951C0
accent
#3EEA63
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E981E

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

Preview Lab → · Contrast checker → · Palette generator →

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