#978821#978821

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

Color values

HEX#978821
RGBrgb(151, 136, 33)
HSLhsl(52, 64%, 36%)
HSVhsv(52, 78%, 59%)
CMYKcmyk(0%, 9.9%, 78.1%, 40.8%)
CIE-LABlab(56.39, -5.75, 53.29)
CIE-LCHlch(56.39, 53.60, 96.16°)
OKLaboklab(62.21% -0.0217 0.1164)
OKLCHoklch(62.21% 0.118 100.6)
XYZxyz(21.8422, 24.2985, 4.9781)
Luminance0.2430 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978821 #213097
analogous
#974D21 #978821 #6B9721
triadic
#978821 #219788 #882197
tetradic
#978821 #21974D #213097 #97216B
square
#978821 #21974D #213097 #97216B
split-complementary
#978821 #216B97 #4D2197
monochromatic
#332E0B #655B16 #978821 #C9B52C #DACA58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978821#FFFFFF#000000##000000
##9788211.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)
#96840A
Deuteranopia (green-blind)
#9A8A28
Tritanopia (blue-blind)
#A37E75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978821;
/* rgb */ color: rgb(151, 136, 33);
/* oklch */ color: oklch(62.2% 0.118 100.6);
Tailwind
colors: {
  custom: {
    50: '#b9aa65',
    500: '#978821',
    950: '#000000',
  },
}
SCSS
$custom: #978821;
$custom-light: #b9aa65;
$custom-dark: #000000;
JSON
{
  "hex": "#978821",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 33
  },
  "hsl": {
    "h": 52.373,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62207,
    "c": 0.11843,
    "h": 100.6
  },
  "luminance": 0.24297
}

Semantic roles & 50–950 ramp

primary
#978821
secondary
#5563BE
accent
#56E741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978821

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

Preview Lab → · Contrast checker → · Palette generator →

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