#978321#978321

#978321 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.1% C 0.115 H 97.0°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#978321
RGBrgb(151, 131, 33)
HSLhsl(50, 64%, 36%)
HSVhsv(50, 78%, 59%)
CMYKcmyk(0%, 13.2%, 78.1%, 40.8%)
CIE-LABlab(54.99, -2.99, 52.00)
CIE-LCHlch(54.99, 52.09, 93.29°)
OKLaboklab(61.1% -0.0139 0.1137)
OKLCHoklch(61.1% 0.115 97)
XYZxyz(21.1544, 22.9228, 4.7488)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978321 #213597
analogous
#974821 #978321 #709721
triadic
#978321 #219783 #832197
tetradic
#978321 #219748 #213597 #972170
square
#978321 #219748 #213597 #972170
split-complementary
#978321 #217097 #482197
monochromatic
#332C0B #655716 #978321 #C9AF2C #DAC458

Accessibility & contrast

On white

3.76
#978321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#978321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978321
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978321#FFFFFF#000000##000000
##9783211.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800D
Deuteranopia (green-blind)
#968628
Tritanopia (blue-blind)
#A37870
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #978321;
/* rgb */ color: rgb(151, 131, 33);
/* oklch */ color: oklch(61.1% 0.115 97.0);
Tailwind
colors: {
  custom: {
    50: '#b9a665',
    500: '#978321',
    950: '#000000',
  },
}
SCSS
$custom: #978321;
$custom-light: #b9a665;
$custom-dark: #000000;
JSON
{
  "hex": "#978321",
  "rgb": {
    "r": 151,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 49.831,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61102,
    "c": 0.11452,
    "h": 97
  },
  "luminance": 0.22922
}

Semantic roles & 50–950 ramp

primary
#978321
secondary
#5567BE
accent
#5DE741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978321

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

Preview Lab → · Contrast checker → · Palette generator →

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