#978A5B#978A5B

#978A5B is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.3% C 0.067 H 94.5°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#978A5B
RGBrgb(151, 138, 91)
HSLhsl(47, 25%, 47%)
HSVhsv(47, 40%, 59%)
CMYKcmyk(0%, 8.6%, 39.7%, 40.8%)
CIE-LABlab(57.57, -2.23, 26.95)
CIE-LCHlch(57.57, 27.04, 94.74°)
OKLaboklab(63.35% -0.0052 0.0663)
OKLCHoklch(63.35% 0.067 94.5)
XYZxyz(23.7398, 25.5124, 13.5694)
Luminance0.2551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A5B #5B6897
analogous
#976C5B #978A5B #86975B
triadic
#978A5B #5B978A #8A5B97
tetradic
#978A5B #5B976C #5B6897 #975B86
square
#978A5B #5B976C #5B6897 #975B86
split-complementary
#978A5B #5B8697 #6C5B97
monochromatic
#4B442D #716744 #978A5B #B1A67E #C8C0A4

Accessibility & contrast

On white

3.44
#978A5B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#978A5B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A5B
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A5B#FFFFFF#000000##000000
##978A5B1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938858
Deuteranopia (green-blind)
#978C5D
Tritanopia (blue-blind)
#A0837E
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978a5b;
/* rgb */ color: rgb(151, 138, 91);
/* oklch */ color: oklch(63.3% 0.067 94.5);
Tailwind
colors: {
  custom: {
    50: '#b6ac8a',
    500: '#978a5b',
    950: '#000000',
  },
}
SCSS
$custom: #978a5b;
$custom-light: #b6ac8a;
$custom-dark: #000000;
JSON
{
  "hex": "#978a5b",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 91
  },
  "hsl": {
    "h": 47,
    "s": 24.793,
    "l": 47.451
  },
  "oklch": {
    "l": 0.63349,
    "c": 0.06653,
    "h": 94.5
  },
  "luminance": 0.25512
}

Semantic roles & 50–950 ramp

primary
#978A5B
secondary
#989EB6
accent
#7AC167
background
#FBFAF8
surface
#F6F4F0
border
#D0CECB
text
#11100B
muted
#807F7C

Preview Lab

Preview with #978A5B

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

Preview Lab → · Contrast checker → · Palette generator →

#978A5B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva