#978E21#978E21

#978E21 is a light, vivid yellow. Relative luminance 0.260; OKLCH L 63.5% C 0.124 H 104.5°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#978E21
RGBrgb(151, 142, 33)
HSLhsl(55, 64%, 36%)
HSVhsv(55, 78%, 59%)
CMYKcmyk(0%, 6%, 78.1%, 40.8%)
CIE-LABlab(58.07, -9.01, 54.83)
CIE-LCHlch(58.07, 55.57, 99.33°)
OKLaboklab(63.55% -0.0309 0.1197)
OKLCHoklch(63.55% 0.124 104.5)
XYZxyz(22.7110, 26.0360, 5.2677)
Luminance0.2604 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978E21 #212A97
analogous
#975321 #978E21 #659721
triadic
#978E21 #21978E #8E2197
tetradic
#978E21 #219753 #212A97 #972165
square
#978E21 #219753 #212A97 #972165
split-complementary
#978E21 #216597 #532197
monochromatic
#33300B #655F16 #978E21 #C9BD2C #DAD158

Accessibility & contrast

On white

3.38
#978E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#978E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978E21
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978E21#FFFFFF#000000##000000
##978E211.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8906
Deuteranopia (green-blind)
#9E8E2A
Tritanopia (blue-blind)
#A3847A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978e21;
/* rgb */ color: rgb(151, 142, 33);
/* oklch */ color: oklch(63.5% 0.124 104.5);
Tailwind
colors: {
  custom: {
    50: '#b9ae66',
    500: '#978e21',
    950: '#000000',
  },
}
SCSS
$custom: #978e21;
$custom-light: #b9ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#978e21",
  "rgb": {
    "r": 151,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 55.424,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63547,
    "c": 0.12364,
    "h": 104.5
  },
  "luminance": 0.26035
}

Semantic roles & 50–950 ramp

primary
#978E21
secondary
#555DBE
accent
#4DE741
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978E21

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

Preview Lab → · Contrast checker → · Palette generator →

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