#7F981C#7F981C

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

Color values

HEX#7F981C
RGBrgb(127, 152, 28)
HSLhsl(72, 69%, 35%)
HSVhsv(72, 82%, 60%)
CMYKcmyk(16.4%, 0%, 81.6%, 40.4%)
CIE-LABlab(59.02, -25.04, 56.53)
CIE-LCHlch(59.02, 61.82, 113.89°)
OKLaboklab(63.82% -0.0744 0.1233)
OKLCHoklch(63.82% 0.144 121.1)
XYZxyz(20.1906, 27.0524, 5.2563)
Luminance0.2705 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F981C #351C98
analogous
#98731C #7F981C #41981C
triadic
#7F981C #1C7F98 #981C7F
tetradic
#7F981C #1C9873 #351C98 #981C41
square
#7F981C #1C9873 #351C98 #981C41
split-complementary
#7F981C #1C4198 #731C98
monochromatic
#293109 #546412 #7F981C #AACC26 #C2DF50

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F981C#FFFFFF#000000##000000
##7F981C1.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f981c;
/* rgb */ color: rgb(127, 152, 28);
/* oklch */ color: oklch(63.8% 0.144 121.1);
Tailwind
colors: {
  custom: {
    50: '#a8b665',
    500: '#7f981c',
    950: '#000000',
  },
}
SCSS
$custom: #7f981c;
$custom-light: #a8b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7f981c",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 72.097,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63823,
    "c": 0.14403,
    "h": 121.1
  },
  "luminance": 0.27052
}

Semantic roles & 50–950 ramp

primary
#7F981C
secondary
#664EC1
accent
#3CEC5F
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F981C

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

Preview Lab → · Contrast checker → · Palette generator →

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