#9D9871#9D9871

#9D9871 is a light, muted yellow. Relative luminance 0.308; OKLCH L 67.4% C 0.055 H 101.6°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#9D9871
RGBrgb(157, 152, 113)
HSLhsl(53, 18%, 53%)
HSVhsv(53, 28%, 62%)
CMYKcmyk(0%, 3.2%, 28%, 38.4%)
CIE-LABlab(62.35, -4.59, 21.24)
CIE-LCHlch(62.35, 21.73, 102.19°)
OKLaboklab(67.38% -0.011 0.0535)
OKLCHoklch(67.38% 0.055 101.6)
XYZxyz(28.1136, 30.8174, 20.0869)
Luminance0.3082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D9871 #71769D
analogous
#9D8271 #9D9871 #8C9D71
triadic
#9D9871 #719D98 #98719D
tetradic
#9D9871 #719D82 #71769D #9D718C
square
#9D9871 #719D82 #71769D #9D718C
split-complementary
#9D9871 #718C9D #82719D
monochromatic
#57543C #7C7755 #9D9871 #B6B295 #CFCDB9

Accessibility & contrast

On white

2.93
#9D9871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#9D9871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D9871
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D9871#FFFFFF#000000##000000
##9D98711.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d9871;
/* rgb */ color: rgb(157, 152, 113);
/* oklch */ color: oklch(67.4% 0.055 101.6);
Tailwind
colors: {
  custom: {
    50: '#bab69a',
    500: '#9d9871',
    950: '#000000',
  },
}
SCSS
$custom: #9d9871;
$custom-light: #bab69a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d9871",
  "rgb": {
    "r": 157,
    "g": 152,
    "b": 113
  },
  "hsl": {
    "h": 53.182,
    "s": 18.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.67385,
    "c": 0.05462,
    "h": 101.6
  },
  "luminance": 0.30817
}

Semantic roles & 50–950 ramp

primary
#9D9871
secondary
#ABAEBE
accent
#76BB6D
background
#FBFBF9
surface
#F6F6F2
border
#D0D0CC
text
#11110E
muted
#80807E

Preview Lab

Preview with #9D9871

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

Preview Lab → · Contrast checker → · Palette generator →

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