#9E9871#9E9871

#9E9871 is a light, muted yellow. Relative luminance 0.309; OKLCH L 67.5% C 0.055 H 100.4°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9E9871
RGBrgb(158, 152, 113)
HSLhsl(52, 19%, 53%)
HSVhsv(52, 28%, 62%)
CMYKcmyk(0%, 3.8%, 28.5%, 38%)
CIE-LABlab(62.44, -4.18, 21.37)
CIE-LCHlch(62.44, 21.77, 101.08°)
OKLaboklab(67.47% -0.0098 0.0538)
OKLCHoklch(67.47% 0.055 100.4)
XYZxyz(28.3096, 30.9184, 20.0961)
Luminance0.3092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9871 #71779E
analogous
#9E8171 #9E9871 #8D9E71
triadic
#9E9871 #719E98 #98719E
tetradic
#9E9871 #719E81 #71779E #9E718D
square
#9E9871 #719E81 #71779E #9E718D
split-complementary
#9E9871 #718D9E #81719E
monochromatic
#58553C #7D7755 #9E9871 #B7B295 #D0CDBA

Accessibility & contrast

On white

2.92
#9E9871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#9E9871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E9871
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9871#FFFFFF#000000##000000
##9E98711.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F956E
Deuteranopia (green-blind)
#A19872
Tritanopia (blue-blind)
#A5938E
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9e9871;
/* rgb */ color: rgb(158, 152, 113);
/* oklch */ color: oklch(67.5% 0.055 100.4);
Tailwind
colors: {
  custom: {
    50: '#bbb69a',
    500: '#9e9871',
    950: '#000000',
  },
}
SCSS
$custom: #9e9871;
$custom-light: #bbb69a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9871",
  "rgb": {
    "r": 158,
    "g": 152,
    "b": 113
  },
  "hsl": {
    "h": 52,
    "s": 18.828,
    "l": 53.137
  },
  "oklch": {
    "l": 0.67473,
    "c": 0.0547,
    "h": 100.4
  },
  "luminance": 0.30918
}

Semantic roles & 50–950 ramp

primary
#9E9871
secondary
#ACAEBF
accent
#77BB6C
background
#FBFBF9
surface
#F6F6F2
border
#D0D0CC
text
#12110E
muted
#81807E

Preview Lab

Preview with #9E9871

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

Preview Lab → · Contrast checker → · Palette generator →

#9E9871 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva