#8CB731#8CB731

#8CB731 is a light, vivid yellow-green. Relative luminance 0.397; OKLCH L 72.3% C 0.164 H 126.0°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#8CB731
RGBrgb(140, 183, 49)
HSLhsl(79, 58%, 45%)
HSVhsv(79, 73%, 72%)
CMYKcmyk(23.5%, 0%, 73.2%, 28.2%)
CIE-LABlab(69.23, -33.48, 59.60)
CIE-LCHlch(69.23, 68.36, 119.32°)
OKLaboklab(72.34% -0.0966 0.133)
OKLCHoklch(72.34% 0.164 126)
XYZxyz(28.3032, 39.6637, 9.0699)
Luminance0.3966 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8CB731 #5C31B7
analogous
#B79F31 #8CB731 #49B731
triadic
#8CB731 #318CB7 #B7318C
tetradic
#8CB731 #31B79F #5C31B7 #B73149
square
#8CB731 #31B79F #5C31B7 #B73149
split-complementary
#8CB731 #3149B7 #9F31B7
monochromatic
#425617 #678724 #8CB731 #A9D154 #C1DE84

Accessibility & contrast

On white

2.35
#8CB731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#8CB731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8CB731
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8CB731#FFFFFF#000000##000000
##8CB7311.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB17
Deuteranopia (green-blind)
#BBA83D
Tritanopia (blue-blind)
#92AE9D
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #8cb731;
/* rgb */ color: rgb(140, 183, 49);
/* oklch */ color: oklch(72.3% 0.164 126.0);
Tailwind
colors: {
  custom: {
    50: '#b1cc72',
    500: '#8cb731',
    950: '#000000',
  },
}
SCSS
$custom: #8cb731;
$custom-light: #b1cc72;
$custom-dark: #000000;
JSON
{
  "hex": "#8cb731",
  "rgb": {
    "r": 140,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 79.254,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.72337,
    "c": 0.16434,
    "h": 126
  },
  "luminance": 0.39664
}

Semantic roles & 50–950 ramp

primary
#8CB731
secondary
#947CC8
accent
#47E178
background
#FBFCF7
surface
#F6F9ED
border
#D0D2C8
text
#111308
muted
#80827B

Preview Lab

Preview with #8CB731

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

Preview Lab → · Contrast checker → · Palette generator →

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