#978F21#978F21

#978F21 is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.125 H 105.1°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#978F21
RGBrgb(151, 143, 33)
HSLhsl(56, 64%, 36%)
HSVhsv(56, 78%, 59%)
CMYKcmyk(0%, 5.3%, 78.1%, 40.8%)
CIE-LABlab(58.35, -9.54, 55.09)
CIE-LCHlch(58.35, 55.91, 99.83°)
OKLaboklab(63.77% -0.0324 0.1203)
OKLCHoklch(63.77% 0.125 105.1)
XYZxyz(22.8605, 26.3349, 5.3175)
Luminance0.2633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F21 #212997
analogous
#975421 #978F21 #649721
triadic
#978F21 #21978F #8F2197
tetradic
#978F21 #219754 #212997 #972164
square
#978F21 #219754 #212997 #972164
split-complementary
#978F21 #216497 #542197
monochromatic
#33300B #655F16 #978F21 #C9BF2C #DAD258

Accessibility & contrast

On white

3.35
#978F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#978F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F21
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F21#FFFFFF#000000##000000
##978F211.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A05
Deuteranopia (green-blind)
#9F8E2A
Tritanopia (blue-blind)
#A3857A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f21;
/* rgb */ color: rgb(151, 143, 33);
/* oklch */ color: oklch(63.8% 0.125 105.1);
Tailwind
colors: {
  custom: {
    50: '#b9af66',
    500: '#978f21',
    950: '#000000',
  },
}
SCSS
$custom: #978f21;
$custom-light: #b9af66;
$custom-dark: #000000;
JSON
{
  "hex": "#978f21",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 55.932,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63771,
    "c": 0.12456,
    "h": 105.1
  },
  "luminance": 0.26334
}

Semantic roles & 50–950 ramp

primary
#978F21
secondary
#555CBE
accent
#4CE741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F21

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

Preview Lab → · Contrast checker → · Palette generator →

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