#979D2B#979D2B

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

Color values

HEX#979D2B
RGBrgb(151, 157, 43)
HSLhsl(63, 57%, 39%)
HSVhsv(63, 73%, 62%)
CMYKcmyk(3.8%, 0%, 72.6%, 38.4%)
CIE-LABlab(62.40, -16.46, 55.38)
CIE-LCHlch(62.40, 57.78, 106.56°)
OKLaboklab(67.02% -0.0508 0.1228)
OKLCHoklch(67.02% 0.133 112.5)
XYZxyz(25.2563, 30.8683, 6.9128)
Luminance0.3087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979D2B #312B9D
analogous
#9D6A2B #979D2B #5E9D2B
triadic
#979D2B #2B979D #9D2B97
tetradic
#979D2B #2B9D6A #312B9D #9D2B5E
square
#979D2B #2B9D6A #312B9D #9D2B5E
split-complementary
#979D2B #2B5E9D #6A2B9D
monochromatic
#3B3D11 #696D1E #979D2B #C2CA3C #D1D76C

Accessibility & contrast

On white

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

On black

7.17
#979D2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979D2B
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979D2B#FFFFFF#000000##000000
##979D2B1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #979d2b;
/* rgb */ color: rgb(151, 157, 43);
/* oklch */ color: oklch(67.0% 0.133 112.5);
Tailwind
colors: {
  custom: {
    50: '#b9b96d',
    500: '#979d2b',
    950: '#000000',
  },
}
SCSS
$custom: #979d2b;
$custom-light: #b9b96d;
$custom-dark: #000000;
JSON
{
  "hex": "#979d2b",
  "rgb": {
    "r": 151,
    "g": 157,
    "b": 43
  },
  "hsl": {
    "h": 63.158,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.67018,
    "c": 0.13286,
    "h": 112.5
  },
  "luminance": 0.30868
}

Semantic roles & 50–950 ramp

primary
#979D2B
secondary
#6B66BD
accent
#48E050
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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