#9E9878#9E9878

#9E9878 is a light, muted yellow. Relative luminance 0.311; OKLCH L 67.6% C 0.045 H 98.6°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#9E9878
RGBrgb(158, 152, 120)
HSLhsl(51, 16%, 55%)
HSVhsv(51, 24%, 62%)
CMYKcmyk(0%, 3.8%, 24.1%, 38%)
CIE-LABlab(62.58, -3.18, 17.67)
CIE-LCHlch(62.58, 17.95, 100.19°)
OKLaboklab(67.63% -0.0068 0.045)
OKLCHoklch(67.63% 0.045 98.6)
XYZxyz(28.7190, 31.0822, 22.2522)
Luminance0.3108 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9878 #787E9E
analogous
#9E8578 #9E9878 #919E78
triadic
#9E9878 #789E98 #98789E
tetradic
#9E9878 #789E85 #787E9E #9E7891
square
#9E9878 #789E85 #787E9E #9E7891
split-complementary
#9E9878 #78919E #85789E
monochromatic
#5B5741 #7E795B #9E9878 #B8B39C #D1CEBF

Accessibility & contrast

On white

2.91
#9E9878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#9E9878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9E9878
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9878#FFFFFF#000000##000000
##9E98781.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E9676
Deuteranopia (green-blind)
#A09879
Tritanopia (blue-blind)
#A4938F
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9e9878;
/* rgb */ color: rgb(158, 152, 120);
/* oklch */ color: oklch(67.6% 0.045 98.6);
Tailwind
colors: {
  custom: {
    50: '#bbb69f',
    500: '#9e9878',
    950: '#000000',
  },
}
SCSS
$custom: #9e9878;
$custom-light: #bbb69f;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9878",
  "rgb": {
    "r": 158,
    "g": 152,
    "b": 120
  },
  "hsl": {
    "h": 50.526,
    "s": 16.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.67628,
    "c": 0.04547,
    "h": 98.6
  },
  "luminance": 0.31082
}

Semantic roles & 50–950 ramp

primary
#9E9878
secondary
#B1B3C1
accent
#7AB96F
background
#FBFBF9
surface
#F6F6F2
border
#D0D0CC
text
#12110E
muted
#81807E

Preview Lab

Preview with #9E9878

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

Preview Lab → · Contrast checker → · Palette generator →

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