#979A1F#979A1F

#979A1F is a light, vivid yellow. Relative luminance 0.298; OKLCH L 66.3% C 0.136 H 111.1°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#979A1F
RGBrgb(151, 154, 31)
HSLhsl(61, 66%, 36%)
HSVhsv(61, 80%, 60%)
CMYKcmyk(1.9%, 0%, 79.9%, 39.6%)
CIE-LABlab(61.47, -15.44, 58.53)
CIE-LCHlch(61.47, 60.53, 104.78°)
OKLaboklab(66.26% -0.049 0.1272)
OKLCHoklch(66.26% 0.136 111.1)
XYZxyz(24.5663, 29.7901, 5.7520)
Luminance0.2979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979A1F #221F9A
analogous
#9A601F #979A1F #5A9A1F
triadic
#979A1F #1F979A #9A1F97
tetradic
#979A1F #1F9A60 #221F9A #9A1F5A
square
#979A1F #1F9A60 #221F9A #9A1F5A
split-complementary
#979A1F #1F5A9A #601F9A
monochromatic
#33340A #656715 #979A1F #C9CD29 #DADD56

Accessibility & contrast

On white

3.02
#979A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#979A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #979A1F
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979A1F#FFFFFF#000000##000000
##979A1F1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#A7962A
Tritanopia (blue-blind)
#A29084
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #979a1f;
/* rgb */ color: rgb(151, 154, 31);
/* oklch */ color: oklch(66.3% 0.136 111.1);
Tailwind
colors: {
  custom: {
    50: '#b9b767',
    500: '#979a1f',
    950: '#000000',
  },
}
SCSS
$custom: #979a1f;
$custom-light: #b9b767;
$custom-dark: #000000;
JSON
{
  "hex": "#979a1f",
  "rgb": {
    "r": 151,
    "g": 154,
    "b": 31
  },
  "hsl": {
    "h": 61.463,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.66258,
    "c": 0.13635,
    "h": 111.1
  },
  "luminance": 0.29789
}

Semantic roles & 50–950 ramp

primary
#979A1F
secondary
#5754C1
accent
#3EE943
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #979A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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