#8FA71F#8FA71F

#8FA71F is a light, vivid yellow-green. Relative luminance 0.336; OKLCH L 68.6% C 0.153 H 119.8°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#8FA71F
RGBrgb(143, 167, 31)
HSLhsl(71, 69%, 39%)
HSVhsv(71, 81%, 65%)
CMYKcmyk(14.4%, 0%, 81.4%, 34.5%)
CIE-LABlab(64.62, -25.49, 61.09)
CIE-LCHlch(64.62, 66.19, 112.65°)
OKLaboklab(68.64% -0.0763 0.133)
OKLCHoklch(68.64% 0.153 119.8)
XYZxyz(25.3943, 33.5761, 6.4391)
Luminance0.3358 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FA71F #371FA7
analogous
#A77B1F #8FA71F #4BA71F
triadic
#8FA71F #1F8FA7 #A71F8F
tetradic
#8FA71F #1FA77B #371FA7 #A71F4B
square
#8FA71F #1FA77B #371FA7 #A71F4B
split-complementary
#8FA71F #1F4BA7 #7B1FA7
monochromatic
#37400C #637315 #8FA71F #B9D82B #CAE15F

Accessibility & contrast

On white

2.72
#8FA71F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#8FA71F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FA71F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FA71F#FFFFFF#000000##000000
##8FA71F1.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D00
Deuteranopia (green-blind)
#AF9D2D
Tritanopia (blue-blind)
#989E8F
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #8fa71f;
/* rgb */ color: rgb(143, 167, 31);
/* oklch */ color: oklch(68.6% 0.153 119.8);
Tailwind
colors: {
  custom: {
    50: '#b4c168',
    500: '#8fa71f',
    950: '#000000',
  },
}
SCSS
$custom: #8fa71f;
$custom-light: #b4c168;
$custom-dark: #000000;
JSON
{
  "hex": "#8fa71f",
  "rgb": {
    "r": 143,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 70.588,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.68636,
    "c": 0.15333,
    "h": 119.8
  },
  "luminance": 0.33576
}

Semantic roles & 50–950 ramp

primary
#8FA71F
secondary
#6F5CC6
accent
#3CEC5B
background
#FBFBF6
surface
#F6F7EB
border
#D0D0C6
text
#111207
muted
#80817A

Preview Lab

Preview with #8FA71F

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

Preview Lab → · Contrast checker → · Palette generator →

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