#978C23#978C23

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

Color values

HEX#978C23
RGBrgb(151, 140, 35)
HSLhsl(54, 62%, 36%)
HSVhsv(54, 77%, 59%)
CMYKcmyk(0%, 7.3%, 76.8%, 40.8%)
CIE-LABlab(57.52, -7.84, 53.63)
CIE-LCHlch(57.52, 54.20, 98.32°)
OKLaboklab(63.11% -0.0274 0.1176)
OKLCHoklch(63.11% 0.121 103.1)
XYZxyz(22.4450, 25.4578, 5.3214)
Luminance0.2546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C23 #232E97
analogous
#975223 #978C23 #689723
triadic
#978C23 #23978C #8C2397
tetradic
#978C23 #239752 #232E97 #972368
square
#978C23 #239752 #232E97 #972368
split-complementary
#978C23 #236897 #522397
monochromatic
#34300C #655E17 #978C23 #C9BA2F #D9CD5B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978C23#FFFFFF#000000##000000
##978C231.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)
#99870D
Deuteranopia (green-blind)
#9D8C2B
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c23;
/* rgb */ color: rgb(151, 140, 35);
/* oklch */ color: oklch(63.1% 0.121 103.1);
Tailwind
colors: {
  custom: {
    50: '#b9ad67',
    500: '#978c23',
    950: '#000000',
  },
}
SCSS
$custom: #978c23;
$custom-light: #b9ad67;
$custom-dark: #000000;
JSON
{
  "hex": "#978c23",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 35
  },
  "hsl": {
    "h": 54.31,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.63111,
    "c": 0.12072,
    "h": 103.1
  },
  "luminance": 0.25457
}

Semantic roles & 50–950 ramp

primary
#978C23
secondary
#5862BE
accent
#52E542
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C23

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

Preview Lab → · Contrast checker → · Palette generator →

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