#978A20#978A20

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

Color values

HEX#978A20
RGBrgb(151, 138, 32)
HSLhsl(53, 65%, 36%)
HSVhsv(53, 79%, 59%)
CMYKcmyk(0%, 8.6%, 78.8%, 40.8%)
CIE-LABlab(56.94, -6.88, 54.14)
CIE-LCHlch(56.94, 54.57, 97.24°)
OKLaboklab(62.65% -0.025 0.118)
OKLCHoklch(62.65% 0.121 102)
XYZxyz(22.1127, 24.8616, 5.0002)
Luminance0.2486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A20 #202D97
analogous
#974E20 #978A20 #689720
triadic
#978A20 #20978A #8A2097
tetradic
#978A20 #20974E #202D97 #972068
square
#978A20 #20974E #202D97 #972068
split-complementary
#978A20 #206897 #4E2097
monochromatic
#322E0B #645C15 #978A20 #C9B82B #DBCD56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978A20#FFFFFF#000000##000000
##978A201.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)
#978606
Deuteranopia (green-blind)
#9B8B28
Tritanopia (blue-blind)
#A38076
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a20;
/* rgb */ color: rgb(151, 138, 32);
/* oklch */ color: oklch(62.6% 0.121 102.0);
Tailwind
colors: {
  custom: {
    50: '#b9ab65',
    500: '#978a20',
    950: '#000000',
  },
}
SCSS
$custom: #978a20;
$custom-light: #b9ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#978a20",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 53.445,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62645,
    "c": 0.12065,
    "h": 102
  },
  "luminance": 0.24861
}

Semantic roles & 50–950 ramp

primary
#978A20
secondary
#5460BF
accent
#52E840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A20

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

Preview Lab → · Contrast checker → · Palette generator →

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