#978822#978822

#978822 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.2% C 0.118 H 100.5°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#978822
RGBrgb(151, 136, 34)
HSLhsl(52, 63%, 36%)
HSVhsv(52, 77%, 59%)
CMYKcmyk(0%, 9.9%, 77.5%, 40.8%)
CIE-LABlab(56.39, -5.70, 52.94)
CIE-LCHlch(56.39, 53.25, 96.15°)
OKLaboklab(62.21% -0.0215 0.1159)
OKLCHoklch(62.21% 0.118 100.5)
XYZxyz(21.8564, 24.3042, 5.0530)
Luminance0.2430 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978822 #223197
analogous
#974E22 #978822 #6C9722
triadic
#978822 #229788 #882297
tetradic
#978822 #22974E #223197 #97226C
square
#978822 #22974E #223197 #97226C
split-complementary
#978822 #226C97 #4E2297
monochromatic
#332E0C #655B17 #978822 #C9B52D #DAC95A

Accessibility & contrast

On white

3.58
#978822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#978822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978822
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978822#FFFFFF#000000##000000
##9788221.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840C
Deuteranopia (green-blind)
#9A8A29
Tritanopia (blue-blind)
#A37E75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978822;
/* rgb */ color: rgb(151, 136, 34);
/* oklch */ color: oklch(62.2% 0.118 100.5);
Tailwind
colors: {
  custom: {
    50: '#b9aa66',
    500: '#978822',
    950: '#000000',
  },
}
SCSS
$custom: #978822;
$custom-light: #b9aa66;
$custom-dark: #000000;
JSON
{
  "hex": "#978822",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 52.308,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62213,
    "c": 0.11786,
    "h": 100.5
  },
  "luminance": 0.24303
}

Semantic roles & 50–950 ramp

primary
#978822
secondary
#5764BE
accent
#57E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978822

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

Preview Lab → · Contrast checker → · Palette generator →

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