#978021#978021

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

Color values

HEX#978021
RGBrgb(151, 128, 33)
HSLhsl(48, 64%, 36%)
HSVhsv(48, 78%, 59%)
CMYKcmyk(0%, 15.2%, 78.1%, 40.8%)
CIE-LABlab(54.16, -1.33, 51.23)
CIE-LCHlch(54.16, 51.25, 91.48°)
OKLaboklab(60.45% -0.0092 0.112)
OKLCHoklch(60.45% 0.112 94.7)
XYZxyz(20.7573, 22.1286, 4.6165)
Luminance0.2213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978021 #213897
analogous
#974521 #978021 #739721
triadic
#978021 #219780 #802197
tetradic
#978021 #219745 #213897 #972173
square
#978021 #219745 #213897 #972173
split-complementary
#978021 #217397 #452197
monochromatic
#332B0B #655516 #978021 #C9AB2C #DAC158

Accessibility & contrast

On white

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

On black

5.43
#978021 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978021
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978021#FFFFFF#000000##000000
##9780211.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #978021;
/* rgb */ color: rgb(151, 128, 33);
/* oklch */ color: oklch(60.4% 0.112 94.7);
Tailwind
colors: {
  custom: {
    50: '#b9a464',
    500: '#978021',
    950: '#000000',
  },
}
SCSS
$custom: #978021;
$custom-light: #b9a464;
$custom-dark: #000000;
JSON
{
  "hex": "#978021",
  "rgb": {
    "r": 151,
    "g": 128,
    "b": 33
  },
  "hsl": {
    "h": 48.305,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60446,
    "c": 0.11241,
    "h": 94.7
  },
  "luminance": 0.22127
}

Semantic roles & 50–950 ramp

primary
#978021
secondary
#556ABE
accent
#61E741
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978021

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

Preview Lab → · Contrast checker → · Palette generator →

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