#7F981F#7F981F

#7F981F 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#7F981F
RGBrgb(127, 152, 31)
HSLhsl(72, 66%, 36%)
HSVhsv(72, 80%, 60%)
CMYKcmyk(16.4%, 0%, 79.6%, 40.4%)
CIE-LABlab(59.04, -24.91, 55.64)
CIE-LCHlch(59.04, 60.97, 114.12°)
OKLaboklab(63.84% -0.0738 0.122)
OKLCHoklch(63.84% 0.143 121.2)
XYZxyz(20.2283, 27.0674, 5.4549)
Luminance0.2707 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F981F #381F98
analogous
#98741F #7F981F #42981F
triadic
#7F981F #1F7F98 #981F7F
tetradic
#7F981F #1F9874 #381F98 #981F42
square
#7F981F #1F9874 #381F98 #981F42
split-complementary
#7F981F #1F4298 #741F98
monochromatic
#2A320A #556515 #7F981F #A9CB29 #C0DC55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F981F#FFFFFF#000000##000000
##7F981F1.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)
#9F8E2B
Tritanopia (blue-blind)
#869082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7f981f;
/* rgb */ color: rgb(127, 152, 31);
/* oklch */ color: oklch(63.8% 0.143 121.2);
Tailwind
colors: {
  custom: {
    50: '#a8b666',
    500: '#7f981f',
    950: '#000000',
  },
}
SCSS
$custom: #7f981f;
$custom-light: #a8b666;
$custom-dark: #000000;
JSON
{
  "hex": "#7f981f",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 72.397,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63839,
    "c": 0.14258,
    "h": 121.2
  },
  "luminance": 0.27067
}

Semantic roles & 50–950 ramp

primary
#7F981F
secondary
#6953C0
accent
#3FE962
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F981F

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

Preview Lab → · Contrast checker → · Palette generator →

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