#8CA42B#8CA42B

#8CA42B is a light, vivid yellow-green. Relative luminance 0.323; OKLCH L 67.8% C 0.145 H 120.3°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#8CA42B
RGBrgb(140, 164, 43)
HSLhsl(72, 58%, 41%)
HSVhsv(72, 74%, 64%)
CMYKcmyk(14.6%, 0%, 73.8%, 35.7%)
CIE-LABlab(63.59, -24.74, 56.25)
CIE-LCHlch(63.59, 61.45, 113.74°)
OKLaboklab(67.77% -0.0731 0.1249)
OKLCHoklch(67.77% 0.145 120.3)
XYZxyz(24.5272, 32.3009, 7.2276)
Luminance0.3230 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8CA42B #432BA4
analogous
#A47F2B #8CA42B #4FA42B
triadic
#8CA42B #2B8CA4 #A42B8C
tetradic
#8CA42B #2BA47F #432BA4 #A42B4F
square
#8CA42B #2BA47F #432BA4 #A42B4F
split-complementary
#8CA42B #2B4FA4 #7F2BA4
monochromatic
#394312 #63741E #8CA42B #B1CD3F #C5D970

Accessibility & contrast

On white

2.81
#8CA42B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#8CA42B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8CA42B
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8CA42B#FFFFFF#000000##000000
##8CA42B1.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A13
Deuteranopia (green-blind)
#AC9A36
Tritanopia (blue-blind)
#949B8D
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #8ca42b;
/* rgb */ color: rgb(140, 164, 43);
/* oklch */ color: oklch(67.8% 0.145 120.3);
Tailwind
colors: {
  custom: {
    50: '#b1bf6d',
    500: '#8ca42b',
    950: '#000000',
  },
}
SCSS
$custom: #8ca42b;
$custom-light: #b1bf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#8ca42b",
  "rgb": {
    "r": 140,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 71.901,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.67768,
    "c": 0.14474,
    "h": 120.3
  },
  "luminance": 0.32301
}

Semantic roles & 50–950 ramp

primary
#8CA42B
secondary
#7B6AC1
accent
#46E265
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111208
muted
#80817B

Preview Lab

Preview with #8CA42B

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

Preview Lab → · Contrast checker → · Palette generator →

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