#978720#978720

#978720 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 62.0% C 0.118 H 99.9°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#978720
RGBrgb(151, 135, 32)
HSLhsl(52, 65%, 36%)
HSVhsv(52, 79%, 59%)
CMYKcmyk(0%, 10.6%, 78.8%, 40.8%)
CIE-LABlab(56.10, -5.24, 53.37)
CIE-LCHlch(56.10, 53.63, 95.61°)
OKLaboklab(61.98% -0.0204 0.1164)
OKLCHoklch(61.98% 0.118 99.9)
XYZxyz(21.6883, 24.0126, 4.8587)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978720 #203097
analogous
#974B20 #978720 #6B9720
triadic
#978720 #209787 #872097
tetradic
#978720 #20974B #203097 #97206B
square
#978720 #20974B #203097 #97206B
split-complementary
#978720 #206B97 #4B2097
monochromatic
#322D0B #645A15 #978720 #C9B42B #DBC956

Accessibility & contrast

On white

3.62
#978720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#978720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978720
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978720#FFFFFF#000000##000000
##9787201.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958308
Deuteranopia (green-blind)
#998927
Tritanopia (blue-blind)
#A37D74
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #978720;
/* rgb */ color: rgb(151, 135, 32);
/* oklch */ color: oklch(62.0% 0.118 99.9);
Tailwind
colors: {
  custom: {
    50: '#b9a965',
    500: '#978720',
    950: '#000000',
  },
}
SCSS
$custom: #978720;
$custom-light: #b9a965;
$custom-dark: #000000;
JSON
{
  "hex": "#978720",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 51.933,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61979,
    "c": 0.11816,
    "h": 99.9
  },
  "luminance": 0.24012
}

Semantic roles & 50–950 ramp

primary
#978720
secondary
#5462BF
accent
#56E840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978720

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

Preview Lab → · Contrast checker → · Palette generator →

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