#978421#978421

#978421 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.3% C 0.115 H 97.7°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#978421
RGBrgb(151, 132, 33)
HSLhsl(50, 64%, 36%)
HSVhsv(50, 78%, 59%)
CMYKcmyk(0%, 12.6%, 78.1%, 40.8%)
CIE-LABlab(55.27, -3.55, 52.26)
CIE-LCHlch(55.27, 52.38, 93.88°)
OKLaboklab(61.32% -0.0155 0.1142)
OKLCHoklch(61.32% 0.115 97.7)
XYZxyz(21.2894, 23.1928, 4.7938)
Luminance0.2319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978421 #213497
analogous
#974921 #978421 #6F9721
triadic
#978421 #219784 #842197
tetradic
#978421 #219749 #213497 #97216F
square
#978421 #219749 #213497 #97216F
split-complementary
#978421 #216F97 #492197
monochromatic
#332C0B #655816 #978421 #C9B02C #DAC558

Accessibility & contrast

On white

3.72
#978421 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#978421 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978421
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978421#FFFFFF#000000##000000
##9784211.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810C
Deuteranopia (green-blind)
#978728
Tritanopia (blue-blind)
#A37971
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #978421;
/* rgb */ color: rgb(151, 132, 33);
/* oklch */ color: oklch(61.3% 0.115 97.7);
Tailwind
colors: {
  custom: {
    50: '#b9a765',
    500: '#978421',
    950: '#000000',
  },
}
SCSS
$custom: #978421;
$custom-light: #b9a765;
$custom-dark: #000000;
JSON
{
  "hex": "#978421",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 33
  },
  "hsl": {
    "h": 50.339,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61322,
    "c": 0.11527,
    "h": 97.7
  },
  "luminance": 0.23192
}

Semantic roles & 50–950 ramp

primary
#978421
secondary
#5566BE
accent
#5BE741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978421

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

Preview Lab → · Contrast checker → · Palette generator →

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