#979E1B#979E1B

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

Color values

HEX#979E1B
RGBrgb(151, 158, 27)
HSLhsl(63, 71%, 36%)
HSVhsv(63, 83%, 62%)
CMYKcmyk(4.4%, 0%, 82.9%, 38%)
CIE-LABlab(62.60, -17.64, 60.64)
CIE-LCHlch(62.60, 63.15, 106.22°)
OKLaboklab(67.16% -0.0554 0.131)
OKLCHoklch(67.16% 0.142 112.9)
XYZxyz(25.1880, 31.1128, 5.7152)
Luminance0.3111 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979E1B #221B9E
analogous
#9E641B #979E1B #569E1B
triadic
#979E1B #1B979E #9E1B97
tetradic
#979E1B #1B9E64 #221B9E #9E1B56
square
#979E1B #1B9E64 #221B9E #9E1B56
split-complementary
#979E1B #1B569E #641B9E
monochromatic
#333509 #656A12 #979E1B #C9D224 #DAE152

Accessibility & contrast

On white

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

On black

7.22
#979E1B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979E1B
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979E1B#FFFFFF#000000##000000
##979E1B1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #979e1b;
/* rgb */ color: rgb(151, 158, 27);
/* oklch */ color: oklch(67.2% 0.142 112.9);
Tailwind
colors: {
  custom: {
    50: '#b9ba66',
    500: '#979e1b',
    950: '#000000',
  },
}
SCSS
$custom: #979e1b;
$custom-light: #b9ba66;
$custom-dark: #000000;
JSON
{
  "hex": "#979e1b",
  "rgb": {
    "r": 151,
    "g": 158,
    "b": 27
  },
  "hsl": {
    "h": 63.206,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.67157,
    "c": 0.14228,
    "h": 112.9
  },
  "luminance": 0.31112
}

Semantic roles & 50–950 ramp

primary
#979E1B
secondary
#5751C4
accent
#3AEE44
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #979E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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