#8FB21F#8FB21F

#8FB21F is a light, vivid yellow-green. Relative luminance 0.378; OKLCH L 71.2% C 0.166 H 123.1°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#8FB21F
RGBrgb(143, 178, 31)
HSLhsl(74, 70%, 41%)
HSVhsv(74, 83%, 70%)
CMYKcmyk(19.7%, 0%, 82.6%, 30.2%)
CIE-LABlab(67.86, -30.77, 63.93)
CIE-LCHlch(67.86, 70.95, 115.70°)
OKLaboklab(71.25% -0.0907 0.1391)
OKLCHoklch(71.25% 0.166 123.1)
XYZxyz(27.4958, 37.7792, 7.1396)
Luminance0.3778 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8FB21F #421FB2
analogous
#B28B1F #8FB21F #45B21F
triadic
#8FB21F #1F8FB2 #B21F8F
tetradic
#8FB21F #1FB28B #421FB2 #B21F45
square
#8FB21F #1FB28B #421FB2 #B21F45
split-complementary
#8FB21F #1F45B2 #8B1FB2
monochromatic
#3B4A0D #657E16 #8FB21F #B3DB33 #C7E567

Accessibility & contrast

On white

2.45
#8FB21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#8FB21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8FB21F
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8FB21F#FFFFFF#000000##000000
##8FB21F1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#B8A530
Tritanopia (blue-blind)
#97A998
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #8fb21f;
/* rgb */ color: rgb(143, 178, 31);
/* oklch */ color: oklch(71.2% 0.166 123.1);
Tailwind
colors: {
  custom: {
    50: '#b4c96a',
    500: '#8fb21f',
    950: '#000000',
  },
}
SCSS
$custom: #8fb21f;
$custom-light: #b4c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#8fb21f",
  "rgb": {
    "r": 143,
    "g": 178,
    "b": 31
  },
  "hsl": {
    "h": 74.286,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71248,
    "c": 0.16605,
    "h": 123.1
  },
  "luminance": 0.37779
}

Semantic roles & 50–950 ramp

primary
#8FB21F
secondary
#7B63CA
accent
#3BED65
background
#FBFCF6
surface
#F6F8EC
border
#D0D1C7
text
#121307
muted
#81827A

Preview Lab

Preview with #8FB21F

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

Preview Lab → · Contrast checker → · Palette generator →

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