#8A8871#8A8871

#8A8871 is a light, muted yellow. Relative luminance 0.242; OKLCH L 62.2% C 0.033 H 103.2°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A8871
RGBrgb(138, 136, 113)
HSLhsl(55, 10%, 49%)
HSVhsv(55, 18%, 54%)
CMYKcmyk(0%, 1.4%, 18.1%, 45.9%)
CIE-LABlab(56.29, -3.38, 12.65)
CIE-LCHlch(56.29, 13.09, 104.94°)
OKLaboklab(62.2% -0.0076 0.0325)
OKLCHoklch(62.2% 0.033 103.2)
XYZxyz(22.2658, 24.2041, 19.1185)
Luminance0.2420 (WCAG relative)
Temperatureneutral
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8871 #71738A
analogous
#8A7C71 #8A8871 #808A71
triadic
#8A8871 #718A88 #88718A
tetradic
#8A8871 #718A7C #71738A #8A7180
square
#8A8871 #718A7C #71738A #8A7180
split-complementary
#8A8871 #71808A #7C718A
monochromatic
#47463A #686755 #8A8871 #A6A492 #C2C0B4

Accessibility & contrast

On white

3.60
#8A8871 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#8A8871 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8871
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8871#FFFFFF#000000##000000
##8A88711.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C8670
Deuteranopia (green-blind)
#8D8872
Tritanopia (blue-blind)
#8E8582
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8871;
/* rgb */ color: rgb(138, 136, 113);
/* oklch */ color: oklch(62.2% 0.033 103.2);
Tailwind
colors: {
  custom: {
    50: '#acaa99',
    500: '#8a8871',
    950: '#000000',
  },
}
SCSS
$custom: #8a8871;
$custom-light: #acaa99;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8871",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 113
  },
  "hsl": {
    "h": 55.2,
    "s": 9.96,
    "l": 49.216
  },
  "oklch": {
    "l": 0.62201,
    "c": 0.03339,
    "h": 103.2
  },
  "luminance": 0.24204
}

Semantic roles & 50–950 ramp

primary
#8A8871
secondary
#A6A7B1
accent
#7AB375
background
#FAFAF9
surface
#F4F4F2
border
#CECECC
text
#10100E
muted
#7F7F7E

Preview Lab

Preview with #8A8871

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

Preview Lab → · Contrast checker → · Palette generator →

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