#978D21#978D21

#978D21 is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.3% C 0.123 H 103.8°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#978D21
RGBrgb(151, 141, 33)
HSLhsl(55, 64%, 36%)
HSVhsv(55, 78%, 59%)
CMYKcmyk(0%, 6.6%, 78.1%, 40.8%)
CIE-LABlab(57.79, -8.47, 54.58)
CIE-LCHlch(57.79, 55.23, 98.82°)
OKLaboklab(63.32% -0.0294 0.1192)
OKLCHoklch(63.32% 0.123 103.8)
XYZxyz(22.5629, 25.7398, 5.2183)
Luminance0.2574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D21 #212B97
analogous
#975221 #978D21 #669721
triadic
#978D21 #21978D #8D2197
tetradic
#978D21 #219752 #212B97 #972166
square
#978D21 #219752 #212B97 #972166
split-complementary
#978D21 #216697 #522197
monochromatic
#332F0B #655E16 #978D21 #C9BC2C #DACF58

Accessibility & contrast

On white

3.42
#978D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#978D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D21
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D21#FFFFFF#000000##000000
##978D211.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8807
Deuteranopia (green-blind)
#9D8D29
Tritanopia (blue-blind)
#A38379
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d21;
/* rgb */ color: rgb(151, 141, 33);
/* oklch */ color: oklch(63.3% 0.123 103.8);
Tailwind
colors: {
  custom: {
    50: '#b9ae66',
    500: '#978d21',
    950: '#000000',
  },
}
SCSS
$custom: #978d21;
$custom-light: #b9ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#978d21",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 54.915,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63322,
    "c": 0.12274,
    "h": 103.8
  },
  "luminance": 0.25739
}

Semantic roles & 50–950 ramp

primary
#978D21
secondary
#555EBE
accent
#4FE741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978D21

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

Preview Lab → · Contrast checker → · Palette generator →

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