#7F981D#7F981D

#7F981D 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#7F981D
RGBrgb(127, 152, 29)
HSLhsl(72, 68%, 35%)
HSVhsv(72, 81%, 60%)
CMYKcmyk(16.4%, 0%, 80.9%, 40.4%)
CIE-LABlab(59.03, -25.00, 56.24)
CIE-LCHlch(59.03, 61.54, 113.96°)
OKLaboklab(63.83% -0.0742 0.1229)
OKLCHoklch(63.83% 0.144 121.1)
XYZxyz(20.2028, 27.0572, 5.3204)
Luminance0.2706 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F981D #361D98
analogous
#98731D #7F981D #41981D
triadic
#7F981D #1D7F98 #981D7F
tetradic
#7F981D #1D9873 #361D98 #981D41
square
#7F981D #1D9873 #361D98 #981D41
split-complementary
#7F981D #1D4198 #731D98
monochromatic
#293109 #546513 #7F981D #AACB27 #C1DE52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7f981d;
/* rgb */ color: rgb(127, 152, 29);
/* oklch */ color: oklch(63.8% 0.144 121.1);
Tailwind
colors: {
  custom: {
    50: '#a8b665',
    500: '#7f981d',
    950: '#000000',
  },
}
SCSS
$custom: #7f981d;
$custom-light: #a8b665;
$custom-dark: #000000;
JSON
{
  "hex": "#7f981d",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 29
  },
  "hsl": {
    "h": 72.195,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.63828,
    "c": 0.14357,
    "h": 121.1
  },
  "luminance": 0.27057
}

Semantic roles & 50–950 ramp

primary
#7F981D
secondary
#6750C1
accent
#3DEB60
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F981D

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

Preview Lab → · Contrast checker → · Palette generator →

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