#8FA81F#8FA81F

#8FA81F is a light, vivid yellow-green. Relative luminance 0.339; OKLCH L 68.9% C 0.154 H 120.2°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8FA81F
RGBrgb(143, 168, 31)
HSLhsl(71, 69%, 39%)
HSVhsv(71, 82%, 66%)
CMYKcmyk(14.9%, 0%, 81.5%, 34.1%)
CIE-LABlab(64.92, -25.97, 61.35)
CIE-LCHlch(64.92, 66.62, 112.95°)
OKLaboklab(68.87% -0.0776 0.1336)
OKLCHoklch(68.87% 0.154 120.2)
XYZxyz(25.5782, 33.9439, 6.5004)
Luminance0.3394 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FA81F #381FA8
analogous
#A87D1F #8FA81F #4BA81F
triadic
#8FA81F #1F8FA8 #A81F8F
tetradic
#8FA81F #1FA87D #381FA8 #A81F4B
square
#8FA81F #1FA87D #381FA8 #A81F4B
split-complementary
#8FA81F #1F4BA8 #7D1FA8
monochromatic
#37410C #637415 #8FA81F #B9D82C #CAE260

Accessibility & contrast

On white

2.70
#8FA81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#8FA81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FA81F
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FA81F#FFFFFF#000000##000000
##8FA81F1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B09E2E
Tritanopia (blue-blind)
#989F8F
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #8fa81f;
/* rgb */ color: rgb(143, 168, 31);
/* oklch */ color: oklch(68.9% 0.154 120.2);
Tailwind
colors: {
  custom: {
    50: '#b4c168',
    500: '#8fa81f',
    950: '#000000',
  },
}
SCSS
$custom: #8fa81f;
$custom-light: #b4c168;
$custom-dark: #000000;
JSON
{
  "hex": "#8fa81f",
  "rgb": {
    "r": 143,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 70.949,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.68873,
    "c": 0.15449,
    "h": 120.2
  },
  "luminance": 0.33944
}

Semantic roles & 50–950 ramp

primary
#8FA81F
secondary
#705DC6
accent
#3CEC5C
background
#FBFBF6
surface
#F6F7EB
border
#D0D0C6
text
#111207
muted
#80817A

Preview Lab

Preview with #8FA81F

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

Preview Lab → · Contrast checker → · Palette generator →

#8FA81F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva