#8A8731#8A8731

#8A8731 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.9% C 0.107 H 107.3°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A8731
RGBrgb(138, 135, 49)
HSLhsl(58, 48%, 37%)
HSVhsv(58, 64%, 54%)
CMYKcmyk(0%, 2.2%, 64.5%, 45.9%)
CIE-LABlab(55.02, -10.24, 45.11)
CIE-LCHlch(55.02, 46.26, 102.79°)
OKLaboklab(60.88% -0.0319 0.1025)
OKLCHoklch(60.88% 0.107 107.3)
XYZxyz(19.7002, 22.9536, 6.2979)
Luminance0.2295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8731 #31348A
analogous
#8A5B31 #8A8731 #618A31
triadic
#8A8731 #318A87 #87318A
tetradic
#8A8731 #318A5B #31348A #8A3161
square
#8A8731 #318A5B #31348A #8A3161
split-complementary
#8A8731 #31618A #5B318A
monochromatic
#302F11 #5D5B21 #8A8731 #B7B341 #CAC76B

Accessibility & contrast

On white

3.76
#8A8731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#8A8731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8731
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8731#FFFFFF#000000##000000
##8A87311.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928226
Deuteranopia (green-blind)
#948536
Tritanopia (blue-blind)
#947E75
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8731;
/* rgb */ color: rgb(138, 135, 49);
/* oklch */ color: oklch(60.9% 0.107 107.3);
Tailwind
colors: {
  custom: {
    50: '#afa96d',
    500: '#8a8731',
    950: '#000000',
  },
}
SCSS
$custom: #8a8731;
$custom-light: #afa96d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8731",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 57.978,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60875,
    "c": 0.10737,
    "h": 107.3
  },
  "luminance": 0.22953
}

Semantic roles & 50–950 ramp

primary
#8A8731
secondary
#6567B2
accent
#55D751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8731

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

Preview Lab → · Contrast checker → · Palette generator →

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