#979D22#979D22

#979D22 is a light, vivid yellow. Relative luminance 0.308; OKLCH L 67.0% C 0.138 H 112.5°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#979D22
RGBrgb(151, 157, 34)
HSLhsl(63, 64%, 37%)
HSVhsv(63, 78%, 62%)
CMYKcmyk(3.8%, 0%, 78.3%, 38.4%)
CIE-LABlab(62.35, -16.88, 58.40)
CIE-LCHlch(62.35, 60.79, 106.12°)
OKLaboklab(66.96% -0.0528 0.1275)
OKLCHoklch(66.96% 0.138 112.5)
XYZxyz(25.1090, 30.8093, 6.1372)
Luminance0.3081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D22 #28229D
analogous
#9D6622 #979D22 #599D22
triadic
#979D22 #22979D #9D2297
tetradic
#979D22 #229D66 #28229D #9D2259
square
#979D22 #229D66 #28229D #9D2259
split-complementary
#979D22 #22599D #66229D
monochromatic
#36380C #676B17 #979D22 #C7CF2D #D6DC5D

Accessibility & contrast

On white

2.93
#979D22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#979D22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979D22
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979D22#FFFFFF#000000##000000
##979D221.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99500
Deuteranopia (green-blind)
#AA982D
Tritanopia (blue-blind)
#A29386
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979d22;
/* rgb */ color: rgb(151, 157, 34);
/* oklch */ color: oklch(67.0% 0.138 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b968',
    500: '#979d22',
    950: '#000000',
  },
}
SCSS
$custom: #979d22;
$custom-light: #b9b968;
$custom-dark: #000000;
JSON
{
  "hex": "#979d22",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 34
  },
  "hsl": {
    "h": 62.927,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.66962,
    "c": 0.13799,
    "h": 112.5
  },
  "luminance": 0.30809
}

Semantic roles & 50–950 ramp

primary
#979D22
secondary
#5F5AC1
accent
#40E749
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979D22

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

Preview Lab → · Contrast checker → · Palette generator →

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