#978222#978222

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

Color values

HEX#978222
RGBrgb(151, 130, 34)
HSLhsl(49, 63%, 36%)
HSVhsv(49, 77%, 59%)
CMYKcmyk(0%, 13.9%, 77.5%, 40.8%)
CIE-LABlab(54.72, -2.40, 51.38)
CIE-LCHlch(54.72, 51.44, 92.67°)
OKLaboklab(60.89% -0.0121 0.1126)
OKLCHoklch(60.89% 0.113 96.2)
XYZxyz(21.0350, 22.6612, 4.7792)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978222 #223797
analogous
#974822 #978222 #729722
triadic
#978222 #229782 #822297
tetradic
#978222 #229748 #223797 #972272
square
#978222 #229748 #223797 #972272
split-complementary
#978222 #227297 #482297
monochromatic
#332C0C #655717 #978222 #C9AD2D #DAC35A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978222#FFFFFF#000000##000000
##9782221.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)
#907F0F
Deuteranopia (green-blind)
#958628
Tritanopia (blue-blind)
#A37770
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #978222;
/* rgb */ color: rgb(151, 130, 34);
/* oklch */ color: oklch(60.9% 0.113 96.2);
Tailwind
colors: {
  custom: {
    50: '#b9a565',
    500: '#978222',
    950: '#000000',
  },
}
SCSS
$custom: #978222;
$custom-light: #b9a565;
$custom-dark: #000000;
JSON
{
  "hex": "#978222",
  "rgb": {
    "r": 151,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 49.231,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.6089,
    "c": 0.11321,
    "h": 96.2
  },
  "luminance": 0.2266
}

Semantic roles & 50–950 ramp

primary
#978222
secondary
#5769BE
accent
#5FE642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978222

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

Preview Lab → · Contrast checker → · Palette generator →

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