#978020#978020

#978020 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.4% C 0.113 H 94.8°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#978020
RGBrgb(151, 128, 32)
HSLhsl(48, 65%, 36%)
HSVhsv(48, 79%, 59%)
CMYKcmyk(0%, 15.2%, 78.8%, 40.8%)
CIE-LABlab(54.16, -1.37, 51.59)
CIE-LCHlch(54.16, 51.61, 91.52°)
OKLaboklab(60.44% -0.0094 0.1126)
OKLCHoklch(60.44% 0.113 94.8)
XYZxyz(20.7435, 22.1231, 4.5438)
Luminance0.2212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978020 #203797
analogous
#974420 #978020 #729720
triadic
#978020 #209780 #802097
tetradic
#978020 #209744 #203797 #972072
square
#978020 #209744 #203797 #972072
split-complementary
#978020 #207297 #442097
monochromatic
#322A0B #645515 #978020 #C9AB2B #DBC256

Accessibility & contrast

On white

3.87
#978020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#978020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978020
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978020#FFFFFF#000000##000000
##9780201.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0C
Deuteranopia (green-blind)
#948426
Tritanopia (blue-blind)
#A4756E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #978020;
/* rgb */ color: rgb(151, 128, 32);
/* oklch */ color: oklch(60.4% 0.113 94.8);
Tailwind
colors: {
  custom: {
    50: '#b9a464',
    500: '#978020',
    950: '#000000',
  },
}
SCSS
$custom: #978020;
$custom-light: #b9a464;
$custom-dark: #000000;
JSON
{
  "hex": "#978020",
  "rgb": {
    "r": 151,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 48.403,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6044,
    "c": 0.11297,
    "h": 94.8
  },
  "luminance": 0.22122
}

Semantic roles & 50–950 ramp

primary
#978020
secondary
#5469BF
accent
#60E840
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978020

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

Preview Lab → · Contrast checker → · Palette generator →

#978020 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva