#979F2A#979F2A

#979F2A is a light, vivid yellow. Relative luminance 0.315; OKLCH L 67.5% C 0.136 H 113.4°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#979F2A
RGBrgb(151, 159, 42)
HSLhsl(64, 58%, 39%)
HSVhsv(64, 74%, 62%)
CMYKcmyk(5%, 0%, 73.6%, 37.6%)
CIE-LABlab(62.96, -17.55, 56.29)
CIE-LCHlch(62.96, 58.96, 107.31°)
OKLaboklab(67.47% -0.0539 0.1245)
OKLCHoklch(67.47% 0.136 113.4)
XYZxyz(25.5793, 31.5433, 6.9310)
Luminance0.3154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979F2A #322A9F
analogous
#9F6D2A #979F2A #5C9F2A
triadic
#979F2A #2A979F #9F2A97
tetradic
#979F2A #2A9F6D #322A9F #9F2A5C
square
#979F2A #2A9F6D #322A9F #9F2A5C
split-complementary
#979F2A #2A5C9F #6D2A9F
monochromatic
#3B3E10 #696F1D #979F2A #C1CB3B #D1D86B

Accessibility & contrast

On white

2.87
#979F2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#979F2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979F2A
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979F2A#FFFFFF#000000##000000
##979F2A1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9713
Deuteranopia (green-blind)
#AB9A33
Tritanopia (blue-blind)
#A19589
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #979f2a;
/* rgb */ color: rgb(151, 159, 42);
/* oklch */ color: oklch(67.5% 0.136 113.4);
Tailwind
colors: {
  custom: {
    50: '#b9bb6c',
    500: '#979f2a',
    950: '#000000',
  },
}
SCSS
$custom: #979f2a;
$custom-light: #b9bb6c;
$custom-dark: #000000;
JSON
{
  "hex": "#979f2a",
  "rgb": {
    "r": 151,
    "g": 159,
    "b": 42
  },
  "hsl": {
    "h": 64.103,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.6747,
    "c": 0.13567,
    "h": 113.4
  },
  "luminance": 0.31543
}

Semantic roles & 50–950 ramp

primary
#979F2A
secondary
#6C66BF
accent
#46E151
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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