#978C24#978C24

#978C24 is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.1% C 0.120 H 103.1°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#978C24
RGBrgb(151, 140, 36)
HSLhsl(54, 61%, 37%)
HSVhsv(54, 76%, 59%)
CMYKcmyk(0%, 7.3%, 76.2%, 40.8%)
CIE-LABlab(57.52, -7.80, 53.28)
CIE-LCHlch(57.52, 53.85, 98.32°)
OKLaboklab(63.12% -0.0272 0.117)
OKLCHoklch(63.12% 0.12 103.1)
XYZxyz(22.4600, 25.4638, 5.4007)
Luminance0.2546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C24 #242F97
analogous
#975324 #978C24 #699724
triadic
#978C24 #24978C #8C2497
tetradic
#978C24 #249753 #242F97 #972469
square
#978C24 #249753 #242F97 #972469
split-complementary
#978C24 #246997 #532497
monochromatic
#34300C #665E18 #978C24 #C8BA30 #D8CD5D

Accessibility & contrast

On white

3.45
#978C24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#978C24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C24
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C24#FFFFFF#000000##000000
##978C241.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870F
Deuteranopia (green-blind)
#9D8C2C
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c24;
/* rgb */ color: rgb(151, 140, 36);
/* oklch */ color: oklch(63.1% 0.120 103.1);
Tailwind
colors: {
  custom: {
    50: '#b9ad67',
    500: '#978c24',
    950: '#000000',
  },
}
SCSS
$custom: #978c24;
$custom-light: #b9ad67;
$custom-dark: #000000;
JSON
{
  "hex": "#978c24",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 36
  },
  "hsl": {
    "h": 54.261,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63117,
    "c": 0.12013,
    "h": 103.1
  },
  "luminance": 0.25463
}

Semantic roles & 50–950 ramp

primary
#978C24
secondary
#5A63BD
accent
#53E543
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C24

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

Preview Lab → · Contrast checker → · Palette generator →

#978C24 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva