#979D28#979D28

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

Color values

HEX#979D28
RGBrgb(151, 157, 40)
HSLhsl(63, 59%, 39%)
HSVhsv(63, 75%, 62%)
CMYKcmyk(3.8%, 0%, 74.5%, 38.4%)
CIE-LABlab(62.38, -16.61, 56.44)
CIE-LCHlch(62.38, 58.83, 106.40°)
OKLaboklab(67% -0.0515 0.1245)
OKLCHoklch(67% 0.135 112.5)
XYZxyz(25.2033, 30.8470, 6.6335)
Luminance0.3085 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D28 #2E289D
analogous
#9D6828 #979D28 #5C9D28
triadic
#979D28 #28979D #9D2897
tetradic
#979D28 #289D68 #2E289D #9D285C
square
#979D28 #289D68 #2E289D #9D285C
split-complementary
#979D28 #285C9D #68289D
monochromatic
#393B0F #686C1C #979D28 #C4CC36 #D2D867

Accessibility & contrast

On white

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

On black

7.17
#979D28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979D28
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979D28#FFFFFF#000000##000000
##979D281.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9950F
Deuteranopia (green-blind)
#A99832
Tritanopia (blue-blind)
#A29387
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979d28;
/* rgb */ color: rgb(151, 157, 40);
/* oklch */ color: oklch(67.0% 0.135 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b96b',
    500: '#979d28',
    950: '#000000',
  },
}
SCSS
$custom: #979d28;
$custom-light: #b9b96b;
$custom-dark: #000000;
JSON
{
  "hex": "#979d28",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 40
  },
  "hsl": {
    "h": 63.077,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.66998,
    "c": 0.13469,
    "h": 112.5
  },
  "luminance": 0.30846
}

Semantic roles & 50–950 ramp

primary
#979D28
secondary
#6762BE
accent
#45E34D
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979D28

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

Preview Lab → · Contrast checker → · Palette generator →

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