#978B20#978B20

#978B20 is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.9% C 0.122 H 102.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978B20
RGBrgb(151, 139, 32)
HSLhsl(54, 65%, 36%)
HSVhsv(54, 79%, 59%)
CMYKcmyk(0%, 7.9%, 78.8%, 40.8%)
CIE-LABlab(57.22, -7.42, 54.39)
CIE-LCHlch(57.22, 54.90, 97.77°)
OKLaboklab(62.87% -0.0265 0.1186)
OKLCHoklch(62.87% 0.122 102.6)
XYZxyz(22.2569, 25.1498, 5.0483)
Luminance0.2515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B20 #202C97
analogous
#975020 #978B20 #679720
triadic
#978B20 #20978B #8B2097
tetradic
#978B20 #209750 #202C97 #972067
square
#978B20 #209750 #202C97 #972067
split-complementary
#978B20 #206797 #502097
monochromatic
#322E0B #645D15 #978B20 #C9B92B #DBCE56

Accessibility & contrast

On white

3.48
#978B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#978B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B20
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B20#FFFFFF#000000##000000
##978B201.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988605
Deuteranopia (green-blind)
#9C8C28
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b20;
/* rgb */ color: rgb(151, 139, 32);
/* oklch */ color: oklch(62.9% 0.122 102.6);
Tailwind
colors: {
  custom: {
    50: '#b9ac65',
    500: '#978b20',
    950: '#000000',
  },
}
SCSS
$custom: #978b20;
$custom-light: #b9ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#978b20",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 53.95,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62869,
    "c": 0.12152,
    "h": 102.6
  },
  "luminance": 0.25149
}

Semantic roles & 50–950 ramp

primary
#978B20
secondary
#545FBF
accent
#51E840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B20

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

Preview Lab → · Contrast checker → · Palette generator →

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