#978B2B#978B2B

#978B2B is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.115 H 102.1°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#978B2B
RGBrgb(151, 139, 43)
HSLhsl(53, 56%, 38%)
HSVhsv(53, 72%, 59%)
CMYKcmyk(0%, 7.9%, 71.5%, 40.8%)
CIE-LABlab(57.29, -6.91, 50.37)
CIE-LCHlch(57.29, 50.85, 97.81°)
OKLaboklab(62.94% -0.024 0.1122)
OKLCHoklch(62.94% 0.115 102.1)
XYZxyz(22.4321, 25.2199, 5.9714)
Luminance0.2522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B2B #2B3797
analogous
#97552B #978B2B #6D972B
triadic
#978B2B #2B978B #8B2B97
tetradic
#978B2B #2B9755 #2B3797 #972B6D
square
#978B2B #2B9755 #2B3797 #972B6D
split-complementary
#978B2B #2B6D97 #552B97
monochromatic
#383310 #675F1D #978B2B #C7B739 #D4C868

Accessibility & contrast

On white

3.47
#978B2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#978B2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B2B
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B2B#FFFFFF#000000##000000
##978B2B1.003.476.046.04
#FFFFFF3.471.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871C
Deuteranopia (green-blind)
#9C8C31
Tritanopia (blue-blind)
#A38178
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978b2b;
/* rgb */ color: rgb(151, 139, 43);
/* oklch */ color: oklch(62.9% 0.115 102.1);
Tailwind
colors: {
  custom: {
    50: '#b9ac6b',
    500: '#978b2b',
    950: '#000000',
  },
}
SCSS
$custom: #978b2b;
$custom-light: #b9ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#978b2b",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 43
  },
  "hsl": {
    "h": 53.333,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.62944,
    "c": 0.11473,
    "h": 102.1
  },
  "luminance": 0.25219
}

Semantic roles & 50–950 ramp

primary
#978B2B
secondary
#636DBB
accent
#5ADF49
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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