#8D9731#8D9731

#8D9731 is a light, vivid yellow. Relative luminance 0.280; OKLCH L 64.8% C 0.125 H 114.7°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8D9731
RGBrgb(141, 151, 49)
HSLhsl(66, 51%, 39%)
HSVhsv(66, 68%, 59%)
CMYKcmyk(6.6%, 0%, 67.5%, 40.8%)
CIE-LABlab(59.91, -17.39, 50.29)
CIE-LCHlch(59.91, 53.21, 109.07°)
OKLaboklab(64.84% -0.0522 0.1134)
OKLCHoklch(64.84% 0.125 114.7)
XYZxyz(22.6061, 28.0181, 7.1223)
Luminance0.2802 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D9731 #3B3197
analogous
#976E31 #8D9731 #5A9731
triadic
#8D9731 #318D97 #97318D
tetradic
#8D9731 #31976E #3B3197 #97315A
square
#8D9731 #31976E #3B3197 #97315A
split-complementary
#8D9731 #315A97 #6E3197
monochromatic
#373B13 #626922 #8D9731 #B6C243 #C8D171

Accessibility & contrast

On white

3.18
#8D9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#8D9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D9731
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D9731#FFFFFF#000000##000000
##8D97311.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29022
Deuteranopia (green-blind)
#A19138
Tritanopia (blue-blind)
#968E82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8d9731;
/* rgb */ color: rgb(141, 151, 49);
/* oklch */ color: oklch(64.8% 0.125 114.7);
Tailwind
colors: {
  custom: {
    50: '#b1b56f',
    500: '#8d9731',
    950: '#000000',
  },
}
SCSS
$custom: #8d9731;
$custom-light: #b1b56f;
$custom-dark: #000000;
JSON
{
  "hex": "#8d9731",
  "rgb": {
    "r": 141,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 65.882,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64837,
    "c": 0.1248,
    "h": 114.7
  },
  "luminance": 0.28018
}

Semantic roles & 50–950 ramp

primary
#8D9731
secondary
#736BB9
accent
#4DDA5B
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111108
muted
#80807B

Preview Lab

Preview with #8D9731

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

Preview Lab → · Contrast checker → · Palette generator →

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