#978C22#978C22

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

Color values

HEX#978C22
RGBrgb(151, 140, 34)
HSLhsl(54, 63%, 36%)
HSVhsv(54, 77%, 59%)
CMYKcmyk(0%, 7.3%, 77.5%, 40.8%)
CIE-LABlab(57.51, -7.88, 53.98)
CIE-LCHlch(57.51, 54.55, 98.31°)
OKLaboklab(63.1% -0.0276 0.1181)
OKLCHoklch(63.1% 0.121 103.2)
XYZxyz(22.4303, 25.4519, 5.2443)
Luminance0.2545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C22 #222D97
analogous
#975222 #978C22 #689722
triadic
#978C22 #22978C #8C2297
tetradic
#978C22 #229752 #222D97 #972268
square
#978C22 #229752 #222D97 #972268
split-complementary
#978C22 #226897 #522297
monochromatic
#332F0C #655E17 #978C22 #C9BA2D #DACE5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978C22#FFFFFF#000000##000000
##978C221.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)
#99870A
Deuteranopia (green-blind)
#9D8C2A
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c22;
/* rgb */ color: rgb(151, 140, 34);
/* oklch */ color: oklch(63.1% 0.121 103.2);
Tailwind
colors: {
  custom: {
    50: '#b9ad66',
    500: '#978c22',
    950: '#000000',
  },
}
SCSS
$custom: #978c22;
$custom-light: #b9ad66;
$custom-dark: #000000;
JSON
{
  "hex": "#978c22",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 54.359,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63104,
    "c": 0.12128,
    "h": 103.2
  },
  "luminance": 0.25451
}

Semantic roles & 50–950 ramp

primary
#978C22
secondary
#5760BE
accent
#51E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C22

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

Preview Lab → · Contrast checker → · Palette generator →

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