#979221#979221

#979221 is a light, vivid yellow. Relative luminance 0.272; OKLCH L 64.4% C 0.127 H 106.8°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#979221
RGBrgb(151, 146, 33)
HSLhsl(57, 64%, 36%)
HSVhsv(57, 78%, 59%)
CMYKcmyk(0%, 3.3%, 78.1%, 40.8%)
CIE-LABlab(59.20, -11.15, 55.86)
CIE-LCHlch(59.20, 56.97, 101.29°)
OKLaboklab(64.45% -0.0369 0.1219)
OKLCHoklch(64.45% 0.127 106.8)
XYZxyz(23.3169, 27.2477, 5.4697)
Luminance0.2725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979221 #212697
analogous
#975721 #979221 #619721
triadic
#979221 #219792 #922197
tetradic
#979221 #219757 #212697 #972161
square
#979221 #219757 #212697 #972161
split-complementary
#979221 #216197 #572197
monochromatic
#33310B #656116 #979221 #C9C32C #DAD558

Accessibility & contrast

On white

3.26
#979221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#979221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #979221
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979221#FFFFFF#000000##000000
##9792211.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C03
Deuteranopia (green-blind)
#A1902A
Tritanopia (blue-blind)
#A2887D
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #979221;
/* rgb */ color: rgb(151, 146, 33);
/* oklch */ color: oklch(64.4% 0.127 106.8);
Tailwind
colors: {
  custom: {
    50: '#b9b166',
    500: '#979221',
    950: '#000000',
  },
}
SCSS
$custom: #979221;
$custom-light: #b9b166;
$custom-dark: #000000;
JSON
{
  "hex": "#979221",
  "rgb": {
    "r": 151,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 57.458,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.64448,
    "c": 0.12738,
    "h": 106.8
  },
  "luminance": 0.27247
}

Semantic roles & 50–950 ramp

primary
#979221
secondary
#555ABE
accent
#48E741
background
#FBFAF6
surface
#F7F5EB
border
#D0CFC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #979221

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

Preview Lab → · Contrast checker → · Palette generator →

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