#978F22#978F22

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

Color values

HEX#978F22
RGBrgb(151, 143, 34)
HSLhsl(56, 63%, 36%)
HSVhsv(56, 77%, 59%)
CMYKcmyk(0%, 5.3%, 77.5%, 40.8%)
CIE-LABlab(58.36, -9.50, 54.76)
CIE-LCHlch(58.36, 55.58, 99.84°)
OKLaboklab(63.78% -0.0322 0.1198)
OKLCHoklch(63.78% 0.124 105)
XYZxyz(22.8747, 26.3406, 5.3924)
Luminance0.2634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F22 #222A97
analogous
#975522 #978F22 #659722
triadic
#978F22 #22978F #8F2297
tetradic
#978F22 #229755 #222A97 #972265
square
#978F22 #229755 #222A97 #972265
split-complementary
#978F22 #226597 #552297
monochromatic
#33300C #656017 #978F22 #C9BE2D #DAD15A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978F22#FFFFFF#000000##000000
##978F221.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)
#9C8A08
Deuteranopia (green-blind)
#9F8E2A
Tritanopia (blue-blind)
#A3857A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f22;
/* rgb */ color: rgb(151, 143, 34);
/* oklch */ color: oklch(63.8% 0.124 105.0);
Tailwind
colors: {
  custom: {
    50: '#b9af67',
    500: '#978f22',
    950: '#000000',
  },
}
SCSS
$custom: #978f22;
$custom-light: #b9af67;
$custom-dark: #000000;
JSON
{
  "hex": "#978f22",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 34
  },
  "hsl": {
    "h": 55.897,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63777,
    "c": 0.12401,
    "h": 105
  },
  "luminance": 0.2634
}

Semantic roles & 50–950 ramp

primary
#978F22
secondary
#575EBE
accent
#4DE642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F22

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

Preview Lab → · Contrast checker → · Palette generator →

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