#8A8431#8A8431

#8A8431 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.2% C 0.104 H 105.2°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A8431
RGBrgb(138, 132, 49)
HSLhsl(56, 48%, 37%)
HSVhsv(56, 64%, 54%)
CMYKcmyk(0%, 4.3%, 64.5%, 45.9%)
CIE-LABlab(54.16, -8.60, 44.19)
CIE-LCHlch(54.16, 45.02, 101.02°)
OKLaboklab(60.19% -0.0273 0.1006)
OKLCHoklch(60.19% 0.104 105.2)
XYZxyz(19.2876, 22.1282, 6.1603)
Luminance0.2213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8431 #31378A
analogous
#8A5831 #8A8431 #648A31
triadic
#8A8431 #318A84 #84318A
tetradic
#8A8431 #318A58 #31378A #8A3164
square
#8A8431 #318A58 #31378A #8A3164
split-complementary
#8A8431 #31648A #58318A
monochromatic
#302E11 #5D5921 #8A8431 #B7AF41 #CAC46B

Accessibility & contrast

On white

3.87
#8A8431 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#8A8431 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8431
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8431#FFFFFF#000000##000000
##8A84311.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F27
Deuteranopia (green-blind)
#918336
Tritanopia (blue-blind)
#947B73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8431;
/* rgb */ color: rgb(138, 132, 49);
/* oklch */ color: oklch(60.2% 0.104 105.2);
Tailwind
colors: {
  custom: {
    50: '#afa76d',
    500: '#8a8431',
    950: '#000000',
  },
}
SCSS
$custom: #8a8431;
$custom-light: #afa76d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8431",
  "rgb": {
    "r": 138,
    "g": 132,
    "b": 49
  },
  "hsl": {
    "h": 55.955,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60189,
    "c": 0.1042,
    "h": 105.2
  },
  "luminance": 0.22128
}

Semantic roles & 50–950 ramp

primary
#8A8431
secondary
#656AB2
accent
#5AD751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8431

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

Preview Lab → · Contrast checker → · Palette generator →

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