#8A9731#8A9731

#8A9731 is a light, vivid yellow. Relative luminance 0.278; OKLCH L 64.6% C 0.126 H 116.3°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#8A9731
RGBrgb(138, 151, 49)
HSLhsl(68, 51%, 39%)
HSVhsv(68, 68%, 59%)
CMYKcmyk(8.6%, 0%, 67.5%, 40.8%)
CIE-LABlab(59.67, -18.69, 49.97)
CIE-LCHlch(59.67, 53.35, 110.51°)
OKLaboklab(64.59% -0.0557 0.1128)
OKLCHoklch(64.59% 0.126 116.3)
XYZxyz(22.1027, 27.7585, 7.0987)
Luminance0.2776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A9731 #3E3197
analogous
#977131 #8A9731 #579731
triadic
#8A9731 #318A97 #97318A
tetradic
#8A9731 #319771 #3E3197 #973157
square
#8A9731 #319771 #3E3197 #973157
split-complementary
#8A9731 #315797 #713197
monochromatic
#363B13 #606922 #8A9731 #B2C243 #C5D171

Accessibility & contrast

On white

3.21
#8A9731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#8A9731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A9731
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A9731#FFFFFF#000000##000000
##8A97311.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18F23
Deuteranopia (green-blind)
#A09038
Tritanopia (blue-blind)
#938F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a9731;
/* rgb */ color: rgb(138, 151, 49);
/* oklch */ color: oklch(64.6% 0.126 116.3);
Tailwind
colors: {
  custom: {
    50: '#afb56f',
    500: '#8a9731',
    950: '#000000',
  },
}
SCSS
$custom: #8a9731;
$custom-light: #afb56f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a9731",
  "rgb": {
    "r": 138,
    "g": 151,
    "b": 49
  },
  "hsl": {
    "h": 67.647,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.6459,
    "c": 0.12576,
    "h": 116.3
  },
  "luminance": 0.27758
}

Semantic roles & 50–950 ramp

primary
#8A9731
secondary
#756BB9
accent
#4DDA5F
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#111108
muted
#80807B

Preview Lab

Preview with #8A9731

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

Preview Lab → · Contrast checker → · Palette generator →

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