#978420#978420

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

Color values

HEX#978420
RGBrgb(151, 132, 32)
HSLhsl(50, 65%, 36%)
HSVhsv(50, 79%, 59%)
CMYKcmyk(0%, 12.6%, 78.8%, 40.8%)
CIE-LABlab(55.26, -3.59, 52.61)
CIE-LCHlch(55.26, 52.73, 93.90°)
OKLaboklab(61.32% -0.0157 0.1148)
OKLCHoklch(61.32% 0.116 97.8)
XYZxyz(21.2756, 23.1872, 4.7212)
Luminance0.2319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978420 #203397
analogous
#974820 #978420 #6E9720
triadic
#978420 #209784 #842097
tetradic
#978420 #209748 #203397 #97206E
square
#978420 #209748 #203397 #97206E
split-complementary
#978420 #206E97 #482097
monochromatic
#322C0B #645815 #978420 #C9B02B #DBC656

Accessibility & contrast

On white

3.73
#978420 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##978420#FFFFFF#000000##000000
##9784201.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #978420;
/* rgb */ color: rgb(151, 132, 32);
/* oklch */ color: oklch(61.3% 0.116 97.8);
Tailwind
colors: {
  custom: {
    50: '#b9a764',
    500: '#978420',
    950: '#000000',
  },
}
SCSS
$custom: #978420;
$custom-light: #b9a764;
$custom-dark: #000000;
JSON
{
  "hex": "#978420",
  "rgb": {
    "r": 151,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 50.42,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61316,
    "c": 0.11583,
    "h": 97.8
  },
  "luminance": 0.23186
}

Semantic roles & 50–950 ramp

primary
#978420
secondary
#5465BF
accent
#5BE840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978420

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

Preview Lab → · Contrast checker → · Palette generator →

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