#979D2C#979D2C

#979D2C is a light, vivid yellow. Relative luminance 0.309; OKLCH L 67.0% C 0.132 H 112.5°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#979D2C
RGBrgb(151, 157, 44)
HSLhsl(63, 56%, 39%)
HSVhsv(63, 72%, 62%)
CMYKcmyk(3.8%, 0%, 72%, 38.4%)
CIE-LABlab(62.40, -16.41, 55.02)
CIE-LCHlch(62.40, 57.41, 106.61°)
OKLaboklab(67.03% -0.0506 0.1222)
OKLCHoklch(67.03% 0.132 112.5)
XYZxyz(25.2749, 30.8757, 7.0106)
Luminance0.3088 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D2C #322C9D
analogous
#9D6B2C #979D2C #5F9D2C
triadic
#979D2C #2C979D #9D2C97
tetradic
#979D2C #2C9D6B #322C9D #9D2C5F
square
#979D2C #2C9D6B #322C9D #9D2C5F
split-complementary
#979D2C #2C5F9D #6B2C9D
monochromatic
#3B3D11 #696D1F #979D2C #C1C93D #D1D66D

Accessibility & contrast

On white

2.93
#979D2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#979D2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979D2C
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979D2C#FFFFFF#000000##000000
##979D2C1.002.937.187.18
#FFFFFF2.931.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99618
Deuteranopia (green-blind)
#A99835
Tritanopia (blue-blind)
#A19387
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979d2c;
/* rgb */ color: rgb(151, 157, 44);
/* oklch */ color: oklch(67.0% 0.132 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b96d',
    500: '#979d2c',
    950: '#000000',
  },
}
SCSS
$custom: #979d2c;
$custom-light: #b9b96d;
$custom-dark: #000000;
JSON
{
  "hex": "#979d2c",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 44
  },
  "hsl": {
    "h": 63.186,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.67025,
    "c": 0.13222,
    "h": 112.5
  },
  "luminance": 0.30875
}

Semantic roles & 50–950 ramp

primary
#979D2C
secondary
#6C68BD
accent
#48E050
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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