#8CB42F#8CB42F

#8CB42F is a light, vivid yellow-green. Relative luminance 0.384; OKLCH L 71.6% C 0.162 H 125.2°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#8CB42F
RGBrgb(140, 180, 47)
HSLhsl(78, 59%, 45%)
HSVhsv(78, 74%, 71%)
CMYKcmyk(22.2%, 0%, 73.9%, 29.4%)
CIE-LABlab(68.33, -32.20, 59.43)
CIE-LCHlch(68.33, 67.59, 118.45°)
OKLaboklab(71.61% -0.0932 0.1323)
OKLCHoklch(71.61% 0.162 125.2)
XYZxyz(27.6498, 38.4229, 8.6484)
Luminance0.3842 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8CB42F #572FB4
analogous
#B49A2F #8CB42F #4AB42F
triadic
#8CB42F #2F8CB4 #B42F8C
tetradic
#8CB42F #2FB49A #572FB4 #B42F4A
square
#8CB42F #2FB49A #572FB4 #B42F4A
split-complementary
#8CB42F #2F4AB4 #9A2FB4
monochromatic
#415316 #668322 #8CB42F #AAD14F #C1DE80

Accessibility & contrast

On white

2.42
#8CB42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.68
#8CB42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8CB42F
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8CB42F#FFFFFF#000000##000000
##8CB42F1.002.428.688.68
#FFFFFF2.421.0021.0021.00
#0000008.6821.001.001.00
##0000008.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA814
Deuteranopia (green-blind)
#B9A63B
Tritanopia (blue-blind)
#92AB9A
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #8cb42f;
/* rgb */ color: rgb(140, 180, 47);
/* oklch */ color: oklch(71.6% 0.162 125.2);
Tailwind
colors: {
  custom: {
    50: '#b1ca71',
    500: '#8cb42f',
    950: '#000000',
  },
}
SCSS
$custom: #8cb42f;
$custom-light: #b1ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#8cb42f",
  "rgb": {
    "r": 140,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 78.045,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71606,
    "c": 0.16184,
    "h": 125.2
  },
  "luminance": 0.38423
}

Semantic roles & 50–950 ramp

primary
#8CB42F
secondary
#9078C7
accent
#46E275
background
#FBFCF7
surface
#F6F8ED
border
#D0D1C8
text
#111308
muted
#80827B

Preview Lab

Preview with #8CB42F

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

Preview Lab → · Contrast checker → · Palette generator →

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