#979B2C#979B2C

#979B2C is a light, vivid yellow. Relative luminance 0.302; OKLCH L 66.6% C 0.130 H 111.5°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#979B2C
RGBrgb(151, 155, 44)
HSLhsl(62, 56%, 39%)
HSVhsv(62, 72%, 61%)
CMYKcmyk(2.6%, 0%, 71.6%, 39.2%)
CIE-LABlab(61.83, -15.38, 54.46)
CIE-LCHlch(61.83, 56.59, 105.77°)
OKLaboklab(66.57% -0.0477 0.121)
OKLCHoklch(66.57% 0.13 111.5)
XYZxyz(24.9393, 30.2045, 6.8987)
Luminance0.3020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979B2C #302C9B
analogous
#9B682C #979B2C #609B2C
triadic
#979B2C #2C979B #9B2C97
tetradic
#979B2C #2C9B68 #302C9B #9B2C60
square
#979B2C #2C9B68 #302C9B #9B2C60
split-complementary
#979B2C #2C609B #682C9B
monochromatic
#3A3C11 #696B1E #979B2C #C3C83C #D2D56C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #979b2c;
/* rgb */ color: rgb(151, 155, 44);
/* oklch */ color: oklch(66.6% 0.130 111.5);
Tailwind
colors: {
  custom: {
    50: '#b9b86d',
    500: '#979b2c',
    950: '#000000',
  },
}
SCSS
$custom: #979b2c;
$custom-light: #b9b86d;
$custom-dark: #000000;
JSON
{
  "hex": "#979b2c",
  "rgb": {
    "r": 151,
    "g": 155,
    "b": 44
  },
  "hsl": {
    "h": 62.162,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.66567,
    "c": 0.13006,
    "h": 111.5
  },
  "luminance": 0.30204
}

Semantic roles & 50–950 ramp

primary
#979B2C
secondary
#6A67BC
accent
#49DF4E
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121107
muted
#81807A

Preview Lab

Preview with #979B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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