#979822#979822

#979822 is a light, vivid yellow. Relative luminance 0.292; OKLCH L 65.8% C 0.133 H 110.1°. Best body text is #000000 at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#979822
RGBrgb(151, 152, 34)
HSLhsl(61, 63%, 36%)
HSVhsv(61, 78%, 60%)
CMYKcmyk(0.7%, 0%, 77.6%, 40.4%)
CIE-LABlab(60.92, -14.28, 57.10)
CIE-LCHlch(60.92, 58.86, 104.04°)
OKLaboklab(65.82% -0.0455 0.1247)
OKLCHoklch(65.82% 0.133 110.1)
XYZxyz(24.2804, 29.1520, 5.8610)
Luminance0.2915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979822 #232298
analogous
#985E22 #979822 #5C9822
triadic
#979822 #229798 #982297
tetradic
#979822 #22985E #232298 #98225C
square
#979822 #22985E #232298 #98225C
split-complementary
#979822 #225C98 #5E2298
monochromatic
#34340C #656617 #979822 #C9CA2D #D9DA5A

Accessibility & contrast

On white

3.07
#979822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.83
#979822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #979822
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979822#FFFFFF#000000##000000
##9798221.003.076.836.83
#FFFFFF3.071.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59102
Deuteranopia (green-blind)
#A6952C
Tritanopia (blue-blind)
#A28E82
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #979822;
/* rgb */ color: rgb(151, 152, 34);
/* oklch */ color: oklch(65.8% 0.133 110.1);
Tailwind
colors: {
  custom: {
    50: '#b9b668',
    500: '#979822',
    950: '#000000',
  },
}
SCSS
$custom: #979822;
$custom-light: #b9b668;
$custom-dark: #000000;
JSON
{
  "hex": "#979822",
  "rgb": {
    "r": 151,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 60.508,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.65817,
    "c": 0.13279,
    "h": 110.1
  },
  "luminance": 0.29151
}

Semantic roles & 50–950 ramp

primary
#979822
secondary
#5857BE
accent
#41E643
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979822

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

Preview Lab → · Contrast checker → · Palette generator →

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