#979C2F#979C2F

#979C2F is a light, vivid yellow. Relative luminance 0.306; OKLCH L 66.8% C 0.129 H 112.0°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#979C2F
RGBrgb(151, 156, 47)
HSLhsl(63, 54%, 40%)
HSVhsv(63, 70%, 61%)
CMYKcmyk(3.2%, 0%, 69.9%, 38.8%)
CIE-LABlab(62.14, -15.73, 53.61)
CIE-LCHlch(62.14, 55.87, 106.36°)
OKLaboklab(66.82% -0.0484 0.1197)
OKLCHoklch(66.82% 0.129 112)
XYZxyz(25.1648, 30.5621, 7.2622)
Luminance0.3056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979C2F #342F9C
analogous
#9C6A2F #979C2F #619C2F
triadic
#979C2F #2F979C #9C2F97
tetradic
#979C2F #2F9C6A #342F9C #9C2F61
square
#979C2F #2F9C6A #342F9C #9C2F61
split-complementary
#979C2F #2F619C #6A2F9C
monochromatic
#3C3E13 #696D21 #979C2F #C0C642 #D0D471

Accessibility & contrast

On white

2.95
#979C2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#979C2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979C2F
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979C2F#FFFFFF#000000##000000
##979C2F1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8951E
Deuteranopia (green-blind)
#A89737
Tritanopia (blue-blind)
#A19286
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #979c2f;
/* rgb */ color: rgb(151, 156, 47);
/* oklch */ color: oklch(66.8% 0.129 112.0);
Tailwind
colors: {
  custom: {
    50: '#b9b96f',
    500: '#979c2f',
    950: '#000000',
  },
}
SCSS
$custom: #979c2f;
$custom-light: #b9b96f;
$custom-dark: #000000;
JSON
{
  "hex": "#979c2f",
  "rgb": {
    "r": 151,
    "g": 156,
    "b": 47
  },
  "hsl": {
    "h": 62.752,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.66818,
    "c": 0.12913,
    "h": 112
  },
  "luminance": 0.30561
}

Semantic roles & 50–950 ramp

primary
#979C2F
secondary
#6F6BBC
accent
#4BDD51
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #979C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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