#978628#978628

#978628 is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.8% C 0.113 H 98.7°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#978628
RGBrgb(151, 134, 40)
HSLhsl(51, 58%, 37%)
HSVhsv(51, 74%, 59%)
CMYKcmyk(0%, 11.3%, 73.5%, 40.8%)
CIE-LABlab(55.87, -4.33, 50.18)
CIE-LCHlch(55.87, 50.37, 94.93°)
OKLaboklab(61.81% -0.017 0.1112)
OKLCHoklch(61.81% 0.113 98.7)
XYZxyz(21.6716, 23.7838, 5.4563)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978628 #283997
analogous
#974F28 #978628 #709728
triadic
#978628 #289786 #862897
tetradic
#978628 #28974F #283997 #972870
square
#978628 #28974F #283997 #972870
split-complementary
#978628 #287097 #4F2897
monochromatic
#36300E #675B1B #978628 #C7B135 #D6C464

Accessibility & contrast

On white

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

On black

5.76
#978628 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978628
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978628#FFFFFF#000000##000000
##9786281.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938219
Deuteranopia (green-blind)
#98882E
Tritanopia (blue-blind)
#A37C73
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #978628;
/* rgb */ color: rgb(151, 134, 40);
/* oklch */ color: oklch(61.8% 0.113 98.7);
Tailwind
colors: {
  custom: {
    50: '#b9a869',
    500: '#978628',
    950: '#000000',
  },
}
SCSS
$custom: #978628;
$custom-light: #b9a869;
$custom-dark: #000000;
JSON
{
  "hex": "#978628",
  "rgb": {
    "r": 151,
    "g": 134,
    "b": 40
  },
  "hsl": {
    "h": 50.811,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61812,
    "c": 0.1125,
    "h": 98.7
  },
  "luminance": 0.23783
}

Semantic roles & 50–950 ramp

primary
#978628
secondary
#5F6DBC
accent
#5EE146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #978628

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

Preview Lab → · Contrast checker → · Palette generator →

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