#978620#978620

#978620 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.8% C 0.117 H 99.2°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#978620
RGBrgb(151, 134, 32)
HSLhsl(51, 65%, 36%)
HSVhsv(51, 79%, 59%)
CMYKcmyk(0%, 11.3%, 78.8%, 40.8%)
CIE-LABlab(55.82, -4.69, 53.12)
CIE-LCHlch(55.82, 53.32, 95.05°)
OKLaboklab(61.76% -0.0188 0.1159)
OKLCHoklch(61.76% 0.117 99.2)
XYZxyz(21.5494, 23.7349, 4.8124)
Luminance0.2373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978620 #203197
analogous
#974B20 #978620 #6C9720
triadic
#978620 #209786 #862097
tetradic
#978620 #20974B #203197 #97206C
square
#978620 #20974B #203197 #97206C
split-complementary
#978620 #206C97 #4B2097
monochromatic
#322C0B #645915 #978620 #C9B32B #DBC856

Accessibility & contrast

On white

3.65
#978620 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#978620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978620
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978620#FFFFFF#000000##000000
##9786201.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948208
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#A37B73
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #978620;
/* rgb */ color: rgb(151, 134, 32);
/* oklch */ color: oklch(61.8% 0.117 99.2);
Tailwind
colors: {
  custom: {
    50: '#b9a864',
    500: '#978620',
    950: '#000000',
  },
}
SCSS
$custom: #978620;
$custom-light: #b9a864;
$custom-dark: #000000;
JSON
{
  "hex": "#978620",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 32
  },
  "hsl": {
    "h": 51.429,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61757,
    "c": 0.11737,
    "h": 99.2
  },
  "luminance": 0.23734
}

Semantic roles & 50–950 ramp

primary
#978620
secondary
#5463BF
accent
#58E840
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978620

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

Preview Lab → · Contrast checker → · Palette generator →

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