#978A21#978A21

#978A21 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.120 H 101.9°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#978A21
RGBrgb(151, 138, 33)
HSLhsl(53, 64%, 36%)
HSVhsv(53, 78%, 59%)
CMYKcmyk(0%, 8.6%, 78.1%, 40.8%)
CIE-LABlab(56.95, -6.84, 53.80)
CIE-LCHlch(56.95, 54.24, 97.24°)
OKLaboklab(62.65% -0.0248 0.1175)
OKLCHoklch(62.65% 0.12 101.9)
XYZxyz(22.1265, 24.8671, 5.0729)
Luminance0.2487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A21 #212E97
analogous
#974F21 #978A21 #699721
triadic
#978A21 #21978A #8A2197
tetradic
#978A21 #21974F #212E97 #972169
square
#978A21 #21974F #212E97 #972169
split-complementary
#978A21 #216997 #4F2197
monochromatic
#332E0B #655C16 #978A21 #C9B82C #DACC58

Accessibility & contrast

On white

3.52
#978A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#978A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A21
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A21#FFFFFF#000000##000000
##978A211.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978608
Deuteranopia (green-blind)
#9B8B29
Tritanopia (blue-blind)
#A38076
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a21;
/* rgb */ color: rgb(151, 138, 33);
/* oklch */ color: oklch(62.7% 0.120 101.9);
Tailwind
colors: {
  custom: {
    50: '#b9ab65',
    500: '#978a21',
    950: '#000000',
  },
}
SCSS
$custom: #978a21;
$custom-light: #b9ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#978a21",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 53.39,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62651,
    "c": 0.12011,
    "h": 101.9
  },
  "luminance": 0.24866
}

Semantic roles & 50–950 ramp

primary
#978A21
secondary
#5561BE
accent
#53E741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A21

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

Preview Lab → · Contrast checker → · Palette generator →

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