#979E21#979E21

#979E21 is a light, vivid yellow. Relative luminance 0.311; OKLCH L 67.2% C 0.140 H 112.9°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#979E21
RGBrgb(151, 158, 33)
HSLhsl(63, 65%, 37%)
HSVhsv(63, 79%, 62%)
CMYKcmyk(4.4%, 0%, 79.1%, 38%)
CIE-LABlab(62.63, -17.43, 58.96)
CIE-LCHlch(62.63, 61.48, 106.47°)
OKLaboklab(67.19% -0.0544 0.1285)
OKLCHoklch(67.19% 0.14 112.9)
XYZxyz(25.2647, 31.1434, 6.1189)
Luminance0.3114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979E21 #28219E
analogous
#9E6721 #979E21 #599E21
triadic
#979E21 #21979E #9E2197
tetradic
#979E21 #219E67 #28219E #9E2159
square
#979E21 #219E67 #28219E #9E2159
split-complementary
#979E21 #21599E #67219E
monochromatic
#36390C #676B16 #979E21 #C7D12C #D6DD5C

Accessibility & contrast

On white

2.91
#979E21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#979E21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979E21
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979E21#FFFFFF#000000##000000
##979E211.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#AA992D
Tritanopia (blue-blind)
#A29487
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979e21;
/* rgb */ color: rgb(151, 158, 33);
/* oklch */ color: oklch(67.2% 0.140 112.9);
Tailwind
colors: {
  custom: {
    50: '#b9ba68',
    500: '#979e21',
    950: '#000000',
  },
}
SCSS
$custom: #979e21;
$custom-light: #b9ba68;
$custom-dark: #000000;
JSON
{
  "hex": "#979e21",
  "rgb": {
    "r": 151,
    "g": 158,
    "b": 33
  },
  "hsl": {
    "h": 63.36,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.67186,
    "c": 0.13955,
    "h": 112.9
  },
  "luminance": 0.31143
}

Semantic roles & 50–950 ramp

primary
#979E21
secondary
#5F59C1
accent
#3FE849
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979E21

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

Preview Lab → · Contrast checker → · Palette generator →

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