#8CA81F#8CA81F

#8CA81F is a light, vivid yellow-green. Relative luminance 0.337; OKLCH L 68.6% C 0.156 H 121.3°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8CA81F
RGBrgb(140, 168, 31)
HSLhsl(72, 69%, 39%)
HSVhsv(72, 82%, 66%)
CMYKcmyk(16.7%, 0%, 81.5%, 34.1%)
CIE-LABlab(64.71, -27.24, 61.08)
CIE-LCHlch(64.71, 66.88, 114.03°)
OKLaboklab(68.65% -0.0809 0.1331)
OKLCHoklch(68.65% 0.156 121.3)
XYZxyz(25.0656, 33.6796, 6.4764)
Luminance0.3368 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8CA81F #3B1FA8
analogous
#A8801F #8CA81F #48A81F
triadic
#8CA81F #1F8CA8 #A81F8C
tetradic
#8CA81F #1FA880 #3B1FA8 #A81F48
square
#8CA81F #1FA880 #3B1FA8 #A81F48
split-complementary
#8CA81F #1F48A8 #801FA8
monochromatic
#36410C #617415 #8CA81F #B5D82C #C7E260

Accessibility & contrast

On white

2.71
#8CA81F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#8CA81F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8CA81F
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8CA81F#FFFFFF#000000##000000
##8CA81F1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39D00
Deuteranopia (green-blind)
#AF9D2E
Tritanopia (blue-blind)
#949F8F
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #8ca81f;
/* rgb */ color: rgb(140, 168, 31);
/* oklch */ color: oklch(68.6% 0.156 121.3);
Tailwind
colors: {
  custom: {
    50: '#b1c168',
    500: '#8ca81f',
    950: '#000000',
  },
}
SCSS
$custom: #8ca81f;
$custom-light: #b1c168;
$custom-dark: #000000;
JSON
{
  "hex": "#8ca81f",
  "rgb": {
    "r": 140,
    "g": 168,
    "b": 31
  },
  "hsl": {
    "h": 72.263,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.68649,
    "c": 0.15576,
    "h": 121.3
  },
  "luminance": 0.3368
}

Semantic roles & 50–950 ramp

primary
#8CA81F
secondary
#725DC6
accent
#3CEC60
background
#FBFBF6
surface
#F6F7EB
border
#D0D0C6
text
#111207
muted
#80817A

Preview Lab

Preview with #8CA81F

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

Preview Lab → · Contrast checker → · Palette generator →

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