#978B21#978B21

#978B21 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.121 H 102.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978B21
RGBrgb(151, 139, 33)
HSLhsl(54, 64%, 36%)
HSVhsv(54, 78%, 59%)
CMYKcmyk(0%, 7.9%, 78.1%, 40.8%)
CIE-LABlab(57.23, -7.38, 54.06)
CIE-LCHlch(57.23, 54.56, 97.78°)
OKLaboklab(62.88% -0.0263 0.1181)
OKLCHoklch(62.88% 0.121 102.6)
XYZxyz(22.2707, 25.1553, 5.1209)
Luminance0.2515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B21 #212D97
analogous
#975021 #978B21 #689721
triadic
#978B21 #21978B #8B2197
tetradic
#978B21 #219750 #212D97 #972168
square
#978B21 #219750 #212D97 #972168
split-complementary
#978B21 #216897 #502197
monochromatic
#332F0B #655D16 #978B21 #C9B92C #DACD58

Accessibility & contrast

On white

3.48
#978B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#978B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B21
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B21#FFFFFF#000000##000000
##978B211.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988608
Deuteranopia (green-blind)
#9C8C29
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b21;
/* rgb */ color: rgb(151, 139, 33);
/* oklch */ color: oklch(62.9% 0.121 102.6);
Tailwind
colors: {
  custom: {
    50: '#b9ac66',
    500: '#978b21',
    950: '#000000',
  },
}
SCSS
$custom: #978b21;
$custom-light: #b9ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#978b21",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 53.898,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62875,
    "c": 0.12097,
    "h": 102.6
  },
  "luminance": 0.25154
}

Semantic roles & 50–950 ramp

primary
#978B21
secondary
#5560BE
accent
#52E741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B21

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

Preview Lab → · Contrast checker → · Palette generator →

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