#978221#978221

#978221 is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.9% C 0.114 H 96.2°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#978221
RGBrgb(151, 130, 33)
HSLhsl(49, 64%, 36%)
HSVhsv(49, 78%, 59%)
CMYKcmyk(0%, 13.9%, 78.1%, 40.8%)
CIE-LABlab(54.72, -2.44, 51.74)
CIE-LCHlch(54.72, 51.80, 92.70°)
OKLaboklab(60.88% -0.0124 0.1131)
OKLCHoklch(60.88% 0.114 96.2)
XYZxyz(21.0208, 22.6555, 4.7043)
Luminance0.2265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978221 #213697
analogous
#974721 #978221 #719721
triadic
#978221 #219782 #822197
tetradic
#978221 #219747 #213697 #972171
square
#978221 #219747 #213697 #972171
split-complementary
#978221 #217197 #472197
monochromatic
#332C0B #655716 #978221 #C9AD2C #DAC358

Accessibility & contrast

On white

3.80
#978221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#978221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978221
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978221#FFFFFF#000000##000000
##9782211.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#958627
Tritanopia (blue-blind)
#A3776F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978221;
/* rgb */ color: rgb(151, 130, 33);
/* oklch */ color: oklch(60.9% 0.114 96.2);
Tailwind
colors: {
  custom: {
    50: '#b9a564',
    500: '#978221',
    950: '#000000',
  },
}
SCSS
$custom: #978221;
$custom-light: #b9a564;
$custom-dark: #000000;
JSON
{
  "hex": "#978221",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 49.322,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60883,
    "c": 0.11379,
    "h": 96.2
  },
  "luminance": 0.22654
}

Semantic roles & 50–950 ramp

primary
#978221
secondary
#5568BE
accent
#5EE741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978221

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

Preview Lab → · Contrast checker → · Palette generator →

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