#8E9731#8E9731

#8E9731 is a light, vivid yellow. Relative luminance 0.281; OKLCH L 64.9% C 0.124 H 114.2°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8E9731
RGBrgb(142, 151, 49)
HSLhsl(65, 51%, 39%)
HSVhsv(65, 68%, 59%)
CMYKcmyk(6%, 0%, 67.5%, 40.8%)
CIE-LABlab(59.98, -16.95, 50.39)
CIE-LCHlch(59.98, 53.17, 108.59°)
OKLaboklab(64.92% -0.051 0.1136)
OKLCHoklch(64.92% 0.124 114.2)
XYZxyz(22.7769, 28.1062, 7.1303)
Luminance0.2811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E9731 #3A3197
analogous
#976D31 #8E9731 #5B9731
triadic
#8E9731 #318E97 #97318E
tetradic
#8E9731 #31976D #3A3197 #97315B
square
#8E9731 #31976D #3A3197 #97315B
split-complementary
#8E9731 #315B97 #6D3197
monochromatic
#373B13 #636922 #8E9731 #B7C243 #C9D171

Accessibility & contrast

On white

3.17
#8E9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#8E9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E9731
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E9731#FFFFFF#000000##000000
##8E97311.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29022
Deuteranopia (green-blind)
#A19238
Tritanopia (blue-blind)
#978E82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8e9731;
/* rgb */ color: rgb(142, 151, 49);
/* oklch */ color: oklch(64.9% 0.124 114.2);
Tailwind
colors: {
  custom: {
    50: '#b2b56f',
    500: '#8e9731',
    950: '#000000',
  },
}
SCSS
$custom: #8e9731;
$custom-light: #b2b56f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e9731",
  "rgb": {
    "r": 142,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 65.294,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64921,
    "c": 0.12449,
    "h": 114.2
  },
  "luminance": 0.28106
}

Semantic roles & 50–950 ramp

primary
#8E9731
secondary
#726BB9
accent
#4DDA5A
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111108
muted
#80807B

Preview Lab

Preview with #8E9731

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

Preview Lab → · Contrast checker → · Palette generator →

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