#979C1F#979C1F

#979C1F is a light, vivid yellow. Relative luminance 0.305; OKLCH L 66.7% C 0.138 H 112.0°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#979C1F
RGBrgb(151, 156, 31)
HSLhsl(62, 67%, 37%)
HSVhsv(62, 80%, 61%)
CMYKcmyk(3.2%, 0%, 80.1%, 38.8%)
CIE-LABlab(62.05, -16.48, 59.04)
CIE-LCHlch(62.05, 61.29, 105.59°)
OKLaboklab(66.72% -0.0519 0.1283)
OKLCHoklch(66.72% 0.138 112)
XYZxyz(24.8992, 30.4558, 5.8630)
Luminance0.3045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979C1F #241F9C
analogous
#9C631F #979C1F #599C1F
triadic
#979C1F #1F979C #9C1F97
tetradic
#979C1F #1F9C63 #241F9C #9C1F59
square
#979C1F #1F9C63 #241F9C #9C1F59
split-complementary
#979C1F #1F599C #631F9C
monochromatic
#34360B #666915 #979C1F #C8CF29 #D8DE58

Accessibility & contrast

On white

2.96
#979C1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#979C1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979C1F
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979C1F#FFFFFF#000000##000000
##979C1F1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99400
Deuteranopia (green-blind)
#A9972B
Tritanopia (blue-blind)
#A29285
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #979c1f;
/* rgb */ color: rgb(151, 156, 31);
/* oklch */ color: oklch(66.7% 0.138 112.0);
Tailwind
colors: {
  custom: {
    50: '#b9b967',
    500: '#979c1f',
    950: '#000000',
  },
}
SCSS
$custom: #979c1f;
$custom-light: #b9b967;
$custom-dark: #000000;
JSON
{
  "hex": "#979c1f",
  "rgb": {
    "r": 151,
    "g": 156,
    "b": 31
  },
  "hsl": {
    "h": 62.4,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.66716,
    "c": 0.13841,
    "h": 112
  },
  "luminance": 0.30455
}

Semantic roles & 50–950 ramp

primary
#979C1F
secondary
#5A55C1
accent
#3EEA45
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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