#7F981B#7F981B

#7F981B is a light, vivid yellow-green. Relative luminance 0.270; 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#7F981B
RGBrgb(127, 152, 27)
HSLhsl(72, 70%, 35%)
HSVhsv(72, 82%, 60%)
CMYKcmyk(16.4%, 0%, 82.2%, 40.4%)
CIE-LABlab(59.02, -25.08, 56.81)
CIE-LCHlch(59.02, 62.09, 113.82°)
OKLaboklab(63.82% -0.0746 0.1238)
OKLCHoklch(63.82% 0.144 121.1)
XYZxyz(20.1788, 27.0476, 5.1944)
Luminance0.2705 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F981B #341B98
analogous
#98721B #7F981B #41981B
triadic
#7F981B #1B7F98 #981B7F
tetradic
#7F981B #1B9872 #341B98 #981B41
square
#7F981B #1B9872 #341B98 #981B41
split-complementary
#7F981B #1B4198 #721B98
monochromatic
#283009 #546412 #7F981B #AACC24 #C2E04E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F981B#FFFFFF#000000##000000
##7F981B1.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)
#9F8E28
Tritanopia (blue-blind)
#879082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7f981b;
/* rgb */ color: rgb(127, 152, 27);
/* oklch */ color: oklch(63.8% 0.144 121.1);
Tailwind
colors: {
  custom: {
    50: '#a8b664',
    500: '#7f981b',
    950: '#000000',
  },
}
SCSS
$custom: #7f981b;
$custom-light: #a8b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7f981b",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 72,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63818,
    "c": 0.14449,
    "h": 121.1
  },
  "luminance": 0.27048
}

Semantic roles & 50–950 ramp

primary
#7F981B
secondary
#644DC2
accent
#3BED5F
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F981B

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

Preview Lab → · Contrast checker → · Palette generator →

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