#978828#978828

#978828 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.3% C 0.114 H 100.1°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#978828
RGBrgb(151, 136, 40)
HSLhsl(52, 58%, 37%)
HSVhsv(52, 74%, 59%)
CMYKcmyk(0%, 9.9%, 73.5%, 40.8%)
CIE-LABlab(56.43, -5.43, 50.72)
CIE-LCHlch(56.43, 51.01, 96.11°)
OKLaboklab(62.25% -0.0201 0.1124)
OKLCHoklch(62.25% 0.114 100.1)
XYZxyz(21.9507, 24.3419, 5.5493)
Luminance0.2434 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978828 #283797
analogous
#975128 #978828 #6E9728
triadic
#978828 #289788 #882897
tetradic
#978828 #289751 #283797 #97286E
square
#978828 #289751 #283797 #97286E
split-complementary
#978828 #286E97 #512897
monochromatic
#36310E #675C1B #978828 #C7B435 #D6C664

Accessibility & contrast

On white

3.58
#978828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#978828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978828
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978828#FFFFFF#000000##000000
##9788281.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958418
Deuteranopia (green-blind)
#998A2E
Tritanopia (blue-blind)
#A37E75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978828;
/* rgb */ color: rgb(151, 136, 40);
/* oklch */ color: oklch(62.3% 0.114 100.1);
Tailwind
colors: {
  custom: {
    50: '#b9aa69',
    500: '#978828',
    950: '#000000',
  },
}
SCSS
$custom: #978828;
$custom-light: #b9aa69;
$custom-dark: #000000;
JSON
{
  "hex": "#978828",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 51.892,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62254,
    "c": 0.11415,
    "h": 100.1
  },
  "luminance": 0.24341
}

Semantic roles & 50–950 ramp

primary
#978828
secondary
#5F6CBC
accent
#5BE146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978828

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

Preview Lab → · Contrast checker → · Palette generator →

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