#979B2B#979B2B

#979B2B 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#979B2B
RGBrgb(151, 155, 43)
HSLhsl(62, 57%, 39%)
HSVhsv(62, 72%, 61%)
CMYKcmyk(2.6%, 0%, 72.3%, 39.2%)
CIE-LABlab(61.82, -15.43, 54.83)
CIE-LCHlch(61.82, 56.95, 105.72°)
OKLaboklab(66.56% -0.0479 0.1216)
OKLCHoklch(66.56% 0.131 111.5)
XYZxyz(24.9207, 30.1970, 6.8009)
Luminance0.3020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979B2B #2F2B9B
analogous
#9B672B #979B2B #5F9B2B
triadic
#979B2B #2B979B #9B2B97
tetradic
#979B2B #2B9B67 #2F2B9B #9B2B5F
square
#979B2B #2B9B67 #2F2B9B #9B2B5F
split-complementary
#979B2B #2B5F9B #672B9B
monochromatic
#3A3B10 #686B1E #979B2B #C3C93B #D2D66B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##979B2B#FFFFFF#000000##000000
##979B2B1.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)
#A79417
Deuteranopia (green-blind)
#A89734
Tritanopia (blue-blind)
#A29185
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #979b2b;
/* rgb */ color: rgb(151, 155, 43);
/* oklch */ color: oklch(66.6% 0.131 111.5);
Tailwind
colors: {
  custom: {
    50: '#b9b86c',
    500: '#979b2b',
    950: '#000000',
  },
}
SCSS
$custom: #979b2b;
$custom-light: #b9b86c;
$custom-dark: #000000;
JSON
{
  "hex": "#979b2b",
  "rgb": {
    "r": 151,
    "g": 155,
    "b": 43
  },
  "hsl": {
    "h": 62.143,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.6656,
    "c": 0.13069,
    "h": 111.5
  },
  "luminance": 0.30196
}

Semantic roles & 50–950 ramp

primary
#979B2B
secondary
#6865BC
accent
#48E04D
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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