#979D1B#979D1B

#979D1B 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.15:1 contrast (WCAG AA passes).

Color values

HEX#979D1B
RGBrgb(151, 157, 27)
HSLhsl(63, 71%, 36%)
HSVhsv(63, 83%, 62%)
CMYKcmyk(3.8%, 0%, 82.8%, 38.4%)
CIE-LABlab(62.32, -17.13, 60.39)
CIE-LCHlch(62.32, 62.77, 105.84°)
OKLaboklab(66.93% -0.054 0.1305)
OKLCHoklch(66.93% 0.141 112.5)
XYZxyz(25.0182, 30.7730, 5.6586)
Luminance0.3077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D1B #211B9D
analogous
#9D621B #979D1B #569D1B
triadic
#979D1B #1B979D #9D1B97
tetradic
#979D1B #1B9D62 #211B9D #9D1B56
square
#979D1B #1B9D62 #211B9D #9D1B56
split-complementary
#979D1B #1B569D #621B9D
monochromatic
#333509 #656912 #979D1B #C9D124 #DAE151

Accessibility & contrast

On white

2.94
#979D1B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#979D1B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979D1B
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979D1B#FFFFFF#000000##000000
##979D1B1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #979d1b;
/* rgb */ color: rgb(151, 157, 27);
/* oklch */ color: oklch(66.9% 0.141 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b966',
    500: '#979d1b',
    950: '#000000',
  },
}
SCSS
$custom: #979d1b;
$custom-light: #b9b966;
$custom-dark: #000000;
JSON
{
  "hex": "#979d1b",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 27
  },
  "hsl": {
    "h": 62.769,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.66927,
    "c": 0.14124,
    "h": 112.5
  },
  "luminance": 0.30772
}

Semantic roles & 50–950 ramp

primary
#979D1B
secondary
#5550C4
accent
#3AED43
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #979D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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