#978C20#978C20

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

Color values

HEX#978C20
RGBrgb(151, 140, 32)
HSLhsl(54, 65%, 36%)
HSVhsv(54, 79%, 59%)
CMYKcmyk(0%, 7.3%, 78.8%, 40.8%)
CIE-LABlab(57.50, -7.97, 54.65)
CIE-LCHlch(57.50, 55.23, 98.29°)
OKLaboklab(63.09% -0.0281 0.1191)
OKLCHoklch(63.09% 0.122 103.3)
XYZxyz(22.4023, 25.4407, 5.0967)
Luminance0.2544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C20 #202B97
analogous
#975020 #978C20 #669720
triadic
#978C20 #20978C #8C2097
tetradic
#978C20 #209750 #202B97 #972066
square
#978C20 #209750 #202B97 #972066
split-complementary
#978C20 #206697 #502097
monochromatic
#322E0B #645D15 #978C20 #C9BB2B #DBCF56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978C20#FFFFFF#000000##000000
##978C201.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)
#998705
Deuteranopia (green-blind)
#9D8C28
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c20;
/* rgb */ color: rgb(151, 140, 32);
/* oklch */ color: oklch(63.1% 0.122 103.3);
Tailwind
colors: {
  custom: {
    50: '#b9ad65',
    500: '#978c20',
    950: '#000000',
  },
}
SCSS
$custom: #978c20;
$custom-light: #b9ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#978c20",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 54.454,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63092,
    "c": 0.12238,
    "h": 103.3
  },
  "luminance": 0.2544
}

Semantic roles & 50–950 ramp

primary
#978C20
secondary
#545EBF
accent
#4FE840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C20

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

Preview Lab → · Contrast checker → · Palette generator →

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