#7F981E#7F981E

#7F981E is a light, vivid yellow-green. Relative luminance 0.271; OKLCH L 63.8% C 0.143 H 121.2°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#7F981E
RGBrgb(127, 152, 30)
HSLhsl(72, 67%, 36%)
HSVhsv(72, 80%, 60%)
CMYKcmyk(16.4%, 0%, 80.3%, 40.4%)
CIE-LABlab(59.03, -24.96, 55.95)
CIE-LCHlch(59.03, 61.26, 114.04°)
OKLaboklab(63.83% -0.074 0.1224)
OKLCHoklch(63.83% 0.143 121.2)
XYZxyz(20.2153, 27.0623, 5.3866)
Luminance0.2706 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F981E #371E98
analogous
#98741E #7F981E #42981E
triadic
#7F981E #1E7F98 #981E7F
tetradic
#7F981E #1E9874 #371E98 #981E42
square
#7F981E #1E9874 #371E98 #981E42
split-complementary
#7F981E #1E4298 #741E98
monochromatic
#2A320A #546514 #7F981E #AACB28 #C1DD53

Accessibility & contrast

On white

3.27
#7F981E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#7F981E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F981E
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F981E#FFFFFF#000000##000000
##7F981E1.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f981e;
/* rgb */ color: rgb(127, 152, 30);
/* oklch */ color: oklch(63.8% 0.143 121.2);
Tailwind
colors: {
  custom: {
    50: '#a8b665',
    500: '#7f981e',
    950: '#000000',
  },
}
SCSS
$custom: #7f981e;
$custom-light: #a8b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7f981e",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 30
  },
  "hsl": {
    "h": 72.295,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63834,
    "c": 0.14308,
    "h": 121.2
  },
  "luminance": 0.27062
}

Semantic roles & 50–950 ramp

primary
#7F981E
secondary
#6851C0
accent
#3EEA61
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F981E

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

Preview Lab → · Contrast checker → · Palette generator →

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