#978928#978928

#978928 is a light, moderate yellow. Relative luminance 0.246; OKLCH L 62.5% C 0.115 H 100.9°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#978928
RGBrgb(151, 137, 40)
HSLhsl(52, 58%, 37%)
HSVhsv(52, 74%, 59%)
CMYKcmyk(0%, 9.3%, 73.5%, 40.8%)
CIE-LABlab(56.71, -5.97, 51.00)
CIE-LCHlch(56.71, 51.35, 96.68°)
OKLaboklab(62.48% -0.0216 0.113)
OKLCHoklch(62.48% 0.115 100.9)
XYZxyz(22.0922, 24.6248, 5.5965)
Luminance0.2462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978928 #283697
analogous
#975128 #978928 #6E9728
triadic
#978928 #289789 #892897
tetradic
#978928 #289751 #283697 #97286E
square
#978928 #289751 #283697 #97286E
split-complementary
#978928 #286E97 #512897
monochromatic
#36310E #675D1B #978928 #C7B535 #D6C764

Accessibility & contrast

On white

3.54
#978928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#978928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978928
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978928#FFFFFF#000000##000000
##9789281.003.545.925.92
#FFFFFF3.541.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#968518
Deuteranopia (green-blind)
#9A8A2E
Tritanopia (blue-blind)
#A37F76
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #978928;
/* rgb */ color: rgb(151, 137, 40);
/* oklch */ color: oklch(62.5% 0.115 100.9);
Tailwind
colors: {
  custom: {
    50: '#b9ab69',
    500: '#978928',
    950: '#000000',
  },
}
SCSS
$custom: #978928;
$custom-light: #b9ab69;
$custom-dark: #000000;
JSON
{
  "hex": "#978928",
  "rgb": {
    "r": 151,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 52.432,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62476,
    "c": 0.11501,
    "h": 100.9
  },
  "luminance": 0.24624
}

Semantic roles & 50–950 ramp

primary
#978928
secondary
#5F6BBC
accent
#5AE146
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978928

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

Preview Lab → · Contrast checker → · Palette generator →

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