#8A8531#8A8531

#8A8531 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.4% C 0.105 H 105.9°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A8531
RGBrgb(138, 133, 49)
HSLhsl(57, 48%, 37%)
HSVhsv(57, 64%, 54%)
CMYKcmyk(0%, 3.6%, 64.5%, 45.9%)
CIE-LABlab(54.45, -9.15, 44.50)
CIE-LCHlch(54.45, 45.43, 101.62°)
OKLaboklab(60.42% -0.0288 0.1012)
OKLCHoklch(60.42% 0.105 105.9)
XYZxyz(19.4238, 22.4007, 6.2057)
Luminance0.2240 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8531 #31368A
analogous
#8A5931 #8A8531 #638A31
triadic
#8A8531 #318A85 #85318A
tetradic
#8A8531 #318A59 #31368A #8A3163
square
#8A8531 #318A59 #31368A #8A3163
split-complementary
#8A8531 #31638A #59318A
monochromatic
#302E11 #5D5921 #8A8531 #B7B141 #CAC56B

Accessibility & contrast

On white

3.83
#8A8531 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#8A8531 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8531
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8531#FFFFFF#000000##000000
##8A85311.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#908027
Deuteranopia (green-blind)
#928436
Tritanopia (blue-blind)
#947C73
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8531;
/* rgb */ color: rgb(138, 133, 49);
/* oklch */ color: oklch(60.4% 0.105 105.9);
Tailwind
colors: {
  custom: {
    50: '#afa86d',
    500: '#8a8531',
    950: '#000000',
  },
}
SCSS
$custom: #8a8531;
$custom-light: #afa86d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8531",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 49
  },
  "hsl": {
    "h": 56.629,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60417,
    "c": 0.10525,
    "h": 105.9
  },
  "luminance": 0.224
}

Semantic roles & 50–950 ramp

primary
#8A8531
secondary
#6569B2
accent
#58D751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8531

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

Preview Lab → · Contrast checker → · Palette generator →

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