#979F21#979F21

#979F21 is a light, vivid yellow. Relative luminance 0.315; OKLCH L 67.4% C 0.141 H 113.4°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#979F21
RGBrgb(151, 159, 33)
HSLhsl(64, 66%, 38%)
HSVhsv(64, 79%, 62%)
CMYKcmyk(5%, 0%, 79.2%, 37.6%)
CIE-LABlab(62.92, -17.94, 59.22)
CIE-LCHlch(62.92, 61.88, 106.86°)
OKLaboklab(67.42% -0.0558 0.1291)
OKLCHoklch(67.42% 0.141 113.4)
XYZxyz(25.4360, 31.4859, 6.1760)
Luminance0.3149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979F21 #29219F
analogous
#9F6821 #979F21 #589F21
triadic
#979F21 #21979F #9F2197
tetradic
#979F21 #219F68 #29219F #9F2158
square
#979F21 #219F68 #29219F #9F2158
split-complementary
#979F21 #21589F #68219F
monochromatic
#373A0C #676C16 #979F21 #C7D22C #D5DD5D

Accessibility & contrast

On white

2.88
#979F21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#979F21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979F21
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979F21#FFFFFF#000000##000000
##979F211.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9700
Deuteranopia (green-blind)
#AB992D
Tritanopia (blue-blind)
#A29588
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #979f21;
/* rgb */ color: rgb(151, 159, 33);
/* oklch */ color: oklch(67.4% 0.141 113.4);
Tailwind
colors: {
  custom: {
    50: '#b9bb68',
    500: '#979f21',
    950: '#000000',
  },
}
SCSS
$custom: #979f21;
$custom-light: #b9bb68;
$custom-dark: #000000;
JSON
{
  "hex": "#979f21",
  "rgb": {
    "r": 151,
    "g": 159,
    "b": 33
  },
  "hsl": {
    "h": 63.81,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.67417,
    "c": 0.14062,
    "h": 113.4
  },
  "luminance": 0.31485
}

Semantic roles & 50–950 ramp

primary
#979F21
secondary
#615AC2
accent
#3FE94A
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979F21

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

Preview Lab → · Contrast checker → · Palette generator →

#979F21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva