#979D1C#979D1C

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

Color values

HEX#979D1C
RGBrgb(151, 157, 28)
HSLhsl(63, 70%, 36%)
HSVhsv(63, 82%, 62%)
CMYKcmyk(3.8%, 0%, 82.2%, 38.4%)
CIE-LABlab(62.32, -17.10, 60.13)
CIE-LCHlch(62.32, 62.51, 105.87°)
OKLaboklab(66.93% -0.0538 0.1301)
OKLCHoklch(66.93% 0.141 112.5)
XYZxyz(25.0299, 30.7777, 5.7206)
Luminance0.3078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D1C #221C9D
analogous
#9D631C #979D1C #579D1C
triadic
#979D1C #1C979D #9D1C97
tetradic
#979D1C #1C9D63 #221C9D #9D1C57
square
#979D1C #1C9D63 #221C9D #9D1C57
split-complementary
#979D1C #1C579D #631C9D
monochromatic
#333509 #656913 #979D1C #C9D125 #DAE053

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##979D1C#FFFFFF#000000##000000
##979D1C1.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)
#AA9500
Deuteranopia (green-blind)
#AA9829
Tritanopia (blue-blind)
#A29386
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979d1c;
/* rgb */ color: rgb(151, 157, 28);
/* oklch */ color: oklch(66.9% 0.141 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b966',
    500: '#979d1c',
    950: '#000000',
  },
}
SCSS
$custom: #979d1c;
$custom-light: #b9b966;
$custom-dark: #000000;
JSON
{
  "hex": "#979d1c",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 28
  },
  "hsl": {
    "h": 62.791,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.66932,
    "c": 0.14081,
    "h": 112.5
  },
  "luminance": 0.30777
}

Semantic roles & 50–950 ramp

primary
#979D1C
secondary
#5751C3
accent
#3BED44
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #979D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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