#978F24#978F24

#978F24 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 63.8% C 0.123 H 105.0°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#978F24
RGBrgb(151, 143, 36)
HSLhsl(56, 61%, 37%)
HSVhsv(56, 76%, 59%)
CMYKcmyk(0%, 5.3%, 76.2%, 40.8%)
CIE-LABlab(58.37, -9.42, 54.07)
CIE-LCHlch(58.37, 54.89, 99.88°)
OKLaboklab(63.79% -0.0318 0.1187)
OKLCHoklch(63.79% 0.123 105)
XYZxyz(22.9044, 26.3525, 5.5488)
Luminance0.2635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F24 #242C97
analogous
#975624 #978F24 #669724
triadic
#978F24 #24978F #8F2497
tetradic
#978F24 #249756 #242C97 #972466
square
#978F24 #249756 #242C97 #972466
split-complementary
#978F24 #246697 #562497
monochromatic
#34310C #666018 #978F24 #C8BE30 #D8D05D

Accessibility & contrast

On white

3.35
#978F24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#978F24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F24
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F24#FFFFFF#000000##000000
##978F241.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A0D
Deuteranopia (green-blind)
#9F8E2C
Tritanopia (blue-blind)
#A3857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f24;
/* rgb */ color: rgb(151, 143, 36);
/* oklch */ color: oklch(63.8% 0.123 105.0);
Tailwind
colors: {
  custom: {
    50: '#b9af68',
    500: '#978f24',
    950: '#000000',
  },
}
SCSS
$custom: #978f24;
$custom-light: #b9af68;
$custom-dark: #000000;
JSON
{
  "hex": "#978f24",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 36
  },
  "hsl": {
    "h": 55.826,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.6379,
    "c": 0.12287,
    "h": 105
  },
  "luminance": 0.26352
}

Semantic roles & 50–950 ramp

primary
#978F24
secondary
#5A61BD
accent
#4EE543
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F24

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

Preview Lab → · Contrast checker → · Palette generator →

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