#979B2A#979B2A

#979B2A is a light, vivid yellow. Relative luminance 0.302; OKLCH L 66.6% C 0.131 H 111.5°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#979B2A
RGBrgb(151, 155, 42)
HSLhsl(62, 57%, 39%)
HSVhsv(62, 73%, 61%)
CMYKcmyk(2.6%, 0%, 72.9%, 39.2%)
CIE-LABlab(61.82, -15.48, 55.19)
CIE-LCHlch(61.82, 57.32, 105.67°)
OKLaboklab(66.55% -0.0482 0.1222)
OKLCHoklch(66.55% 0.131 111.5)
XYZxyz(24.9026, 30.1898, 6.7055)
Luminance0.3019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979B2A #2E2A9B
analogous
#9B662A #979B2A #5E9B2A
triadic
#979B2A #2A979B #9B2A97
tetradic
#979B2A #2A9B66 #2E2A9B #9B2A5E
square
#979B2A #2A9B66 #2E2A9B #9B2A5E
split-complementary
#979B2A #2A5E9B #662A9B
monochromatic
#393B10 #686B1D #979B2A #C4C939 #D2D669

Accessibility & contrast

On white

2.98
#979B2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#979B2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979B2A
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979B2A#FFFFFF#000000##000000
##979B2A1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79415
Deuteranopia (green-blind)
#A89733
Tritanopia (blue-blind)
#A29185
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #979b2a;
/* rgb */ color: rgb(151, 155, 42);
/* oklch */ color: oklch(66.6% 0.131 111.5);
Tailwind
colors: {
  custom: {
    50: '#b9b86c',
    500: '#979b2a',
    950: '#000000',
  },
}
SCSS
$custom: #979b2a;
$custom-light: #b9b86c;
$custom-dark: #000000;
JSON
{
  "hex": "#979b2a",
  "rgb": {
    "r": 151,
    "g": 155,
    "b": 42
  },
  "hsl": {
    "h": 62.124,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.66553,
    "c": 0.13133,
    "h": 111.5
  },
  "luminance": 0.30189
}

Semantic roles & 50–950 ramp

primary
#979B2A
secondary
#6764BD
accent
#47E14D
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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