#979D1A#979D1A

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

Color values

HEX#979D1A
RGBrgb(151, 157, 26)
HSLhsl(63, 72%, 36%)
HSVhsv(63, 83%, 62%)
CMYKcmyk(3.8%, 0%, 83.4%, 38.4%)
CIE-LABlab(62.31, -17.16, 60.65)
CIE-LCHlch(62.31, 63.03, 105.80°)
OKLaboklab(66.92% -0.0541 0.1309)
OKLCHoklch(66.92% 0.142 112.5)
XYZxyz(25.0068, 30.7685, 5.5987)
Luminance0.3077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D1A #201A9D
analogous
#9D611A #979D1A #559D1A
triadic
#979D1A #1A979D #9D1A97
tetradic
#979D1A #1A9D61 #201A9D #9D1A55
square
#979D1A #1A9D61 #201A9D #9D1A55
split-complementary
#979D1A #1A559D #611A9D
monochromatic
#323409 #656811 #979D1A #C9D223 #DBE24F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##979D1A#FFFFFF#000000##000000
##979D1A1.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: #979d1a;
/* rgb */ color: rgb(151, 157, 26);
/* oklch */ color: oklch(66.9% 0.142 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b965',
    500: '#979d1a',
    950: '#000000',
  },
}
SCSS
$custom: #979d1a;
$custom-light: #b9b965;
$custom-dark: #000000;
JSON
{
  "hex": "#979d1a",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 26
  },
  "hsl": {
    "h": 62.748,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.66923,
    "c": 0.14164,
    "h": 112.5
  },
  "luminance": 0.30768
}

Semantic roles & 50–950 ramp

primary
#979D1A
secondary
#544EC4
accent
#39EE42
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #979D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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