#978A22#978A22

#978A22 is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.120 H 101.9°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#978A22
RGBrgb(151, 138, 34)
HSLhsl(53, 63%, 36%)
HSVhsv(53, 77%, 59%)
CMYKcmyk(0%, 8.6%, 77.5%, 40.8%)
CIE-LABlab(56.95, -6.80, 53.46)
CIE-LCHlch(56.95, 53.89, 97.25°)
OKLaboklab(62.66% -0.0246 0.117)
OKLCHoklch(62.66% 0.12 101.9)
XYZxyz(22.1407, 24.8728, 5.1477)
Luminance0.2487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A22 #222F97
analogous
#975022 #978A22 #6A9722
triadic
#978A22 #22978A #8A2297
tetradic
#978A22 #229750 #222F97 #97226A
square
#978A22 #229750 #222F97 #97226A
split-complementary
#978A22 #226A97 #502297
monochromatic
#332F0C #655C17 #978A22 #C9B82D #DACC5A

Accessibility & contrast

On white

3.51
#978A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#978A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A22
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A22#FFFFFF#000000##000000
##978A221.003.515.975.97
#FFFFFF3.511.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#97860B
Deuteranopia (green-blind)
#9B8B2A
Tritanopia (blue-blind)
#A38076
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a22;
/* rgb */ color: rgb(151, 138, 34);
/* oklch */ color: oklch(62.7% 0.120 101.9);
Tailwind
colors: {
  custom: {
    50: '#b9ab66',
    500: '#978a22',
    950: '#000000',
  },
}
SCSS
$custom: #978a22;
$custom-light: #b9ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#978a22",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 53.333,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62658,
    "c": 0.11955,
    "h": 101.9
  },
  "luminance": 0.24872
}

Semantic roles & 50–950 ramp

primary
#978A22
secondary
#5762BE
accent
#54E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A22

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

Preview Lab → · Contrast checker → · Palette generator →

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