#979D2D#979D2D

#979D2D 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#979D2D
RGBrgb(151, 157, 45)
HSLhsl(63, 55%, 40%)
HSVhsv(63, 71%, 62%)
CMYKcmyk(3.8%, 0%, 71.3%, 38.4%)
CIE-LABlab(62.41, -16.36, 54.65)
CIE-LCHlch(62.41, 57.04, 106.67°)
OKLaboklab(67.03% -0.0503 0.1216)
OKLCHoklch(67.03% 0.132 112.5)
XYZxyz(25.2939, 30.8833, 7.1108)
Luminance0.3088 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D2D #332D9D
analogous
#9D6B2D #979D2D #5F9D2D
triadic
#979D2D #2D979D #9D2D97
tetradic
#979D2D #2D9D6B #332D9D #9D2D5F
square
#979D2D #2D9D6B #332D9D #9D2D5F
split-complementary
#979D2D #2D5F9D #6B2D9D
monochromatic
#3C3E12 #696D1F #979D2D #C1C83F #D0D66F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##979D2D#FFFFFF#000000##000000
##979D2D1.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)
#A9961A
Deuteranopia (green-blind)
#A99836
Tritanopia (blue-blind)
#A19387
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979d2d;
/* rgb */ color: rgb(151, 157, 45);
/* oklch */ color: oklch(67.0% 0.132 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b96e',
    500: '#979d2d',
    950: '#000000',
  },
}
SCSS
$custom: #979d2d;
$custom-light: #b9b96e;
$custom-dark: #000000;
JSON
{
  "hex": "#979d2d",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 45
  },
  "hsl": {
    "h": 63.214,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.67032,
    "c": 0.13158,
    "h": 112.5
  },
  "luminance": 0.30883
}

Semantic roles & 50–950 ramp

primary
#979D2D
secondary
#6D69BD
accent
#49DF51
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121108
muted
#81807B

Preview Lab

Preview with #979D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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