#978728#978728

#978728 is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.0% C 0.113 H 99.4°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#978728
RGBrgb(151, 135, 40)
HSLhsl(51, 58%, 37%)
HSVhsv(51, 74%, 59%)
CMYKcmyk(0%, 10.6%, 73.5%, 40.8%)
CIE-LABlab(56.15, -4.88, 50.45)
CIE-LCHlch(56.15, 50.69, 95.52°)
OKLaboklab(62.03% -0.0185 0.1118)
OKLCHoklch(62.03% 0.113 99.4)
XYZxyz(21.8105, 24.0615, 5.5026)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978728 #283897
analogous
#974F28 #978728 #709728
triadic
#978728 #289787 #872897
tetradic
#978728 #28974F #283897 #972870
square
#978728 #28974F #283897 #972870
split-complementary
#978728 #287097 #4F2897
monochromatic
#36300E #675C1B #978728 #C7B235 #D6C564

Accessibility & contrast

On white

3.61
#978728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#978728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978728
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978728#FFFFFF#000000##000000
##9787281.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948319
Deuteranopia (green-blind)
#99892E
Tritanopia (blue-blind)
#A37D74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978728;
/* rgb */ color: rgb(151, 135, 40);
/* oklch */ color: oklch(62.0% 0.113 99.4);
Tailwind
colors: {
  custom: {
    50: '#b9a969',
    500: '#978728',
    950: '#000000',
  },
}
SCSS
$custom: #978728;
$custom-light: #b9a969;
$custom-dark: #000000;
JSON
{
  "hex": "#978728",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 51.351,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62033,
    "c": 0.11332,
    "h": 99.4
  },
  "luminance": 0.2406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #978728

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

Preview Lab → · Contrast checker → · Palette generator →

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