#978722#978722

#978722 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 62.0% C 0.117 H 99.8°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#978722
RGBrgb(151, 135, 34)
HSLhsl(52, 63%, 36%)
HSVhsv(52, 77%, 59%)
CMYKcmyk(0%, 10.6%, 77.5%, 40.8%)
CIE-LABlab(56.11, -5.16, 52.68)
CIE-LCHlch(56.11, 52.93, 95.59°)
OKLaboklab(61.99% -0.02 0.1153)
OKLCHoklch(61.99% 0.117 99.8)
XYZxyz(21.7163, 24.0238, 5.0063)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978722 #223297
analogous
#974D22 #978722 #6D9722
triadic
#978722 #229787 #872297
tetradic
#978722 #22974D #223297 #97226D
square
#978722 #22974D #223297 #97226D
split-complementary
#978722 #226D97 #4D2297
monochromatic
#332E0C #655A17 #978722 #C9B42D #DAC85A

Accessibility & contrast

On white

3.62
#978722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#978722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978722
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978722#FFFFFF#000000##000000
##9787221.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#95830D
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#A37D74
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #978722;
/* rgb */ color: rgb(151, 135, 34);
/* oklch */ color: oklch(62.0% 0.117 99.8);
Tailwind
colors: {
  custom: {
    50: '#b9a966',
    500: '#978722',
    950: '#000000',
  },
}
SCSS
$custom: #978722;
$custom-light: #b9a966;
$custom-dark: #000000;
JSON
{
  "hex": "#978722",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 51.795,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61991,
    "c": 0.11704,
    "h": 99.8
  },
  "luminance": 0.24023
}

Semantic roles & 50–950 ramp

primary
#978722
secondary
#5765BE
accent
#58E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978722

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

Preview Lab → · Contrast checker → · Palette generator →

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