#978B22#978B22

#978B22 is a light, vivid yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.120 H 102.5°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978B22
RGBrgb(151, 139, 34)
HSLhsl(54, 63%, 36%)
HSVhsv(54, 77%, 59%)
CMYKcmyk(0%, 7.9%, 77.5%, 40.8%)
CIE-LABlab(57.23, -7.34, 53.72)
CIE-LCHlch(57.23, 54.22, 97.78°)
OKLaboklab(62.88% -0.0261 0.1175)
OKLCHoklch(62.88% 0.12 102.5)
XYZxyz(22.2849, 25.1610, 5.1958)
Luminance0.2516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B22 #222E97
analogous
#975122 #978B22 #699722
triadic
#978B22 #22978B #8B2297
tetradic
#978B22 #229751 #222E97 #972269
square
#978B22 #229751 #222E97 #972269
split-complementary
#978B22 #226997 #512297
monochromatic
#332F0C #655D17 #978B22 #C9B92D #DACD5A

Accessibility & contrast

On white

3.48
#978B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#978B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B22
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B22#FFFFFF#000000##000000
##978B221.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860B
Deuteranopia (green-blind)
#9C8C2A
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b22;
/* rgb */ color: rgb(151, 139, 34);
/* oklch */ color: oklch(62.9% 0.120 102.5);
Tailwind
colors: {
  custom: {
    50: '#b9ac66',
    500: '#978b22',
    950: '#000000',
  },
}
SCSS
$custom: #978b22;
$custom-light: #b9ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#978b22",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 53.846,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62881,
    "c": 0.12041,
    "h": 102.5
  },
  "luminance": 0.2516
}

Semantic roles & 50–950 ramp

primary
#978B22
secondary
#5761BE
accent
#52E642
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B22

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

Preview Lab → · Contrast checker → · Palette generator →

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