#8CB21F#8CB21F

#8CB21F is a light, vivid yellow-green. Relative luminance 0.375; OKLCH L 71.0% C 0.167 H 124.1°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#8CB21F
RGBrgb(140, 178, 31)
HSLhsl(76, 70%, 41%)
HSVhsv(76, 83%, 70%)
CMYKcmyk(21.3%, 0%, 82.6%, 30.2%)
CIE-LABlab(67.66, -31.99, 63.69)
CIE-LCHlch(67.66, 71.27, 116.67°)
OKLaboklab(71.04% -0.0939 0.1387)
OKLCHoklch(71.04% 0.167 124.1)
XYZxyz(26.9833, 37.5149, 7.1156)
Luminance0.3751 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8CB21F #451FB2
analogous
#B28E1F #8CB21F #42B21F
triadic
#8CB21F #1F8CB2 #B21F8C
tetradic
#8CB21F #1FB28E #451FB2 #B21F42
square
#8CB21F #1FB28E #451FB2 #B21F42
split-complementary
#8CB21F #1F42B2 #8E1FB2
monochromatic
#3A4A0D #637E16 #8CB21F #B0DB33 #C4E567

Accessibility & contrast

On white

2.47
#8CB21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#8CB21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8CB21F
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8CB21F#FFFFFF#000000##000000
##8CB21F1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#B7A430
Tritanopia (blue-blind)
#93A998
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #8cb21f;
/* rgb */ color: rgb(140, 178, 31);
/* oklch */ color: oklch(71.0% 0.167 124.1);
Tailwind
colors: {
  custom: {
    50: '#b2c96a',
    500: '#8cb21f',
    950: '#000000',
  },
}
SCSS
$custom: #8cb21f;
$custom-light: #b2c96a;
$custom-dark: #000000;
JSON
{
  "hex": "#8cb21f",
  "rgb": {
    "r": 140,
    "g": 178,
    "b": 31
  },
  "hsl": {
    "h": 75.51,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71038,
    "c": 0.16744,
    "h": 124.1
  },
  "luminance": 0.37515
}

Semantic roles & 50–950 ramp

primary
#8CB21F
secondary
#7E63CA
accent
#3BED69
background
#FBFCF6
surface
#F6F8EC
border
#D0D1C7
text
#111307
muted
#80827A

Preview Lab

Preview with #8CB21F

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

Preview Lab → · Contrast checker → · Palette generator →

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