#979D1F#979D1F

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

Color values

HEX#979D1F
RGBrgb(151, 157, 31)
HSLhsl(63, 67%, 37%)
HSVhsv(63, 80%, 62%)
CMYKcmyk(3.8%, 0%, 80.3%, 38.4%)
CIE-LABlab(62.33, -16.99, 59.29)
CIE-LCHlch(62.33, 61.68, 105.99°)
OKLaboklab(66.95% -0.0533 0.1289)
OKLCHoklch(66.95% 0.139 112.5)
XYZxyz(25.0676, 30.7928, 5.9192)
Luminance0.3079 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D1F #251F9D
analogous
#9D641F #979D1F #589D1F
triadic
#979D1F #1F979D #9D1F97
tetradic
#979D1F #1F9D64 #251F9D #9D1F58
square
#979D1F #1F9D64 #251F9D #9D1F58
split-complementary
#979D1F #1F589D #641F9D
monochromatic
#35370B #666A15 #979D1F #C8D029 #D8DE58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##979D1F#FFFFFF#000000##000000
##979D1F1.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)
#A99500
Deuteranopia (green-blind)
#AA982B
Tritanopia (blue-blind)
#A29386
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979d1f;
/* rgb */ color: rgb(151, 157, 31);
/* oklch */ color: oklch(66.9% 0.139 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b967',
    500: '#979d1f',
    950: '#000000',
  },
}
SCSS
$custom: #979d1f;
$custom-light: #b9b967;
$custom-dark: #000000;
JSON
{
  "hex": "#979d1f",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 62.857,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.66946,
    "c": 0.13947,
    "h": 112.5
  },
  "luminance": 0.30792
}

Semantic roles & 50–950 ramp

primary
#979D1F
secondary
#5B56C2
accent
#3EEA46
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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