#979F2C#979F2C

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

Color values

HEX#979F2C
RGBrgb(151, 159, 44)
HSLhsl(64, 57%, 40%)
HSVhsv(64, 72%, 62%)
CMYKcmyk(5%, 0%, 72.3%, 37.6%)
CIE-LABlab(62.98, -17.44, 55.57)
CIE-LCHlch(62.98, 58.25, 107.43°)
OKLaboklab(67.48% -0.0534 0.1234)
OKLCHoklch(67.48% 0.134 113.4)
XYZxyz(25.6160, 31.5580, 7.1243)
Luminance0.3156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979F2C #342C9F
analogous
#9F6E2C #979F2C #5E9F2C
triadic
#979F2C #2C979F #9F2C97
tetradic
#979F2C #2C9F6E #342C9F #9F2C5E
square
#979F2C #2C9F6E #342C9F #9F2C5E
split-complementary
#979F2C #2C5E9F #6E2C9F
monochromatic
#3C3F11 #696F1F #979F2C #C0CA3E #D0D76E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##979F2C#FFFFFF#000000##000000
##979F2C1.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)
#AB9717
Deuteranopia (green-blind)
#AB9A35
Tritanopia (blue-blind)
#A19589
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #979f2c;
/* rgb */ color: rgb(151, 159, 44);
/* oklch */ color: oklch(67.5% 0.134 113.4);
Tailwind
colors: {
  custom: {
    50: '#b9bb6d',
    500: '#979f2c',
    950: '#000000',
  },
}
SCSS
$custom: #979f2c;
$custom-light: #b9bb6d;
$custom-dark: #000000;
JSON
{
  "hex": "#979f2c",
  "rgb": {
    "r": 151,
    "g": 159,
    "b": 44
  },
  "hsl": {
    "h": 64.174,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.67484,
    "c": 0.13443,
    "h": 113.4
  },
  "luminance": 0.31557
}

Semantic roles & 50–950 ramp

primary
#979F2C
secondary
#6F69BE
accent
#48E052
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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