#979C2A#979C2A

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

Color values

HEX#979C2A
RGBrgb(151, 156, 42)
HSLhsl(63, 58%, 39%)
HSVhsv(63, 73%, 61%)
CMYKcmyk(3.2%, 0%, 73.1%, 38.8%)
CIE-LABlab(62.10, -16.00, 55.46)
CIE-LCHlch(62.10, 57.72, 106.09°)
OKLaboklab(66.78% -0.0496 0.1228)
OKLCHoklch(66.78% 0.132 112)
XYZxyz(25.0697, 30.5240, 6.7612)
Luminance0.3052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979C2A #2F2A9C
analogous
#9C682A #979C2A #5E9C2A
triadic
#979C2A #2A979C #9C2A97
tetradic
#979C2A #2A9C68 #2F2A9C #9C2A5E
square
#979C2A #2A9C68 #2F2A9C #9C2A5E
split-complementary
#979C2A #2A5E9C #682A9C
monochromatic
#3A3C10 #686C1D #979C2A #C3CA39 #D2D76A

Accessibility & contrast

On white

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

On black

7.10
#979C2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979C2A
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979C2A#FFFFFF#000000##000000
##979C2A1.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89514
Deuteranopia (green-blind)
#A99733
Tritanopia (blue-blind)
#A29286
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #979c2a;
/* rgb */ color: rgb(151, 156, 42);
/* oklch */ color: oklch(66.8% 0.132 112.0);
Tailwind
colors: {
  custom: {
    50: '#b9b96c',
    500: '#979c2a',
    950: '#000000',
  },
}
SCSS
$custom: #979c2a;
$custom-light: #b9b96c;
$custom-dark: #000000;
JSON
{
  "hex": "#979c2a",
  "rgb": {
    "r": 151,
    "g": 156,
    "b": 42
  },
  "hsl": {
    "h": 62.632,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.66782,
    "c": 0.13241,
    "h": 112
  },
  "luminance": 0.30523
}

Semantic roles & 50–950 ramp

primary
#979C2A
secondary
#6865BD
accent
#47E14E
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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