#978D20#978D20

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

Color values

HEX#978D20
RGBrgb(151, 141, 32)
HSLhsl(55, 65%, 36%)
HSVhsv(55, 79%, 59%)
CMYKcmyk(0%, 6.6%, 78.8%, 40.8%)
CIE-LABlab(57.78, -8.51, 54.90)
CIE-LCHlch(57.78, 55.56, 98.81°)
OKLaboklab(63.32% -0.0296 0.1197)
OKLCHoklch(63.32% 0.123 103.9)
XYZxyz(22.5491, 25.7343, 5.1457)
Luminance0.2573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D20 #202A97
analogous
#975120 #978D20 #659720
triadic
#978D20 #20978D #8D2097
tetradic
#978D20 #209751 #202A97 #972065
square
#978D20 #209751 #202A97 #972065
split-complementary
#978D20 #206597 #512097
monochromatic
#322F0B #645E15 #978D20 #C9BC2B #DBD056

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978D20#FFFFFF#000000##000000
##978D201.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)
#9A8804
Deuteranopia (green-blind)
#9E8D29
Tritanopia (blue-blind)
#A38379
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d20;
/* rgb */ color: rgb(151, 141, 32);
/* oklch */ color: oklch(63.3% 0.123 103.9);
Tailwind
colors: {
  custom: {
    50: '#b9ae65',
    500: '#978d20',
    950: '#000000',
  },
}
SCSS
$custom: #978d20;
$custom-light: #b9ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#978d20",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 54.958,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63316,
    "c": 0.12327,
    "h": 103.9
  },
  "luminance": 0.25733
}

Semantic roles & 50–950 ramp

primary
#978D20
secondary
#545DBF
accent
#4EE840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978D20

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

Preview Lab → · Contrast checker → · Palette generator →

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