#978520#978520

#978520 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.5% C 0.117 H 98.5°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#978520
RGBrgb(151, 133, 32)
HSLhsl(51, 65%, 36%)
HSVhsv(51, 79%, 59%)
CMYKcmyk(0%, 11.9%, 78.8%, 40.8%)
CIE-LABlab(55.54, -4.14, 52.86)
CIE-LCHlch(55.54, 53.02, 94.48°)
OKLaboklab(61.54% -0.0173 0.1153)
OKLCHoklch(61.54% 0.117 98.5)
XYZxyz(21.4118, 23.4598, 4.7666)
Luminance0.2346 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978520 #203297
analogous
#974920 #978520 #6D9720
triadic
#978520 #209785 #852097
tetradic
#978520 #209749 #203297 #97206D
square
#978520 #209749 #203297 #97206D
split-complementary
#978520 #206D97 #492097
monochromatic
#322C0B #645915 #978520 #C9B12B #DBC756

Accessibility & contrast

On white

3.69
#978520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#978520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978520
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978520#FFFFFF#000000##000000
##9785201.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938109
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#A37A72
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #978520;
/* rgb */ color: rgb(151, 133, 32);
/* oklch */ color: oklch(61.5% 0.117 98.5);
Tailwind
colors: {
  custom: {
    50: '#b9a864',
    500: '#978520',
    950: '#000000',
  },
}
SCSS
$custom: #978520;
$custom-light: #b9a864;
$custom-dark: #000000;
JSON
{
  "hex": "#978520",
  "rgb": {
    "r": 151,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 50.924,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61536,
    "c": 0.11659,
    "h": 98.5
  },
  "luminance": 0.23459
}

Semantic roles & 50–950 ramp

primary
#978520
secondary
#5464BF
accent
#59E840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978520

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

Preview Lab → · Contrast checker → · Palette generator →

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