#978C21#978C21

#978C21 is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.122 H 103.2°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#978C21
RGBrgb(151, 140, 33)
HSLhsl(54, 64%, 36%)
HSVhsv(54, 78%, 59%)
CMYKcmyk(0%, 7.3%, 78.1%, 40.8%)
CIE-LABlab(57.51, -7.92, 54.32)
CIE-LCHlch(57.51, 54.89, 98.30°)
OKLaboklab(63.1% -0.0279 0.1186)
OKLCHoklch(63.1% 0.122 103.2)
XYZxyz(22.4161, 25.4462, 5.1694)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C21 #212C97
analogous
#975121 #978C21 #679721
triadic
#978C21 #21978C #8C2197
tetradic
#978C21 #219751 #212C97 #972167
square
#978C21 #219751 #212C97 #972167
split-complementary
#978C21 #216797 #512197
monochromatic
#332F0B #655D16 #978C21 #C9BB2C #DACE58

Accessibility & contrast

On white

3.45
#978C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#978C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C21
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C21#FFFFFF#000000##000000
##978C211.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998707
Deuteranopia (green-blind)
#9D8C29
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c21;
/* rgb */ color: rgb(151, 140, 33);
/* oklch */ color: oklch(63.1% 0.122 103.2);
Tailwind
colors: {
  custom: {
    50: '#b9ad66',
    500: '#978c21',
    950: '#000000',
  },
}
SCSS
$custom: #978c21;
$custom-light: #b9ad66;
$custom-dark: #000000;
JSON
{
  "hex": "#978c21",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 54.407,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63098,
    "c": 0.12185,
    "h": 103.2
  },
  "luminance": 0.25445
}

Semantic roles & 50–950 ramp

primary
#978C21
secondary
#555FBE
accent
#50E741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C21

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

Preview Lab → · Contrast checker → · Palette generator →

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