#979B1F#979B1F

#979B1F is a light, vivid yellow. Relative luminance 0.301; OKLCH L 66.5% C 0.137 H 111.5°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#979B1F
RGBrgb(151, 155, 31)
HSLhsl(62, 67%, 36%)
HSVhsv(62, 80%, 61%)
CMYKcmyk(2.6%, 0%, 80%, 39.2%)
CIE-LABlab(61.76, -15.96, 58.78)
CIE-LCHlch(61.76, 60.91, 105.19°)
OKLaboklab(66.49% -0.0505 0.1278)
OKLCHoklch(66.49% 0.137 111.5)
XYZxyz(24.7320, 30.1216, 5.8073)
Luminance0.3012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979B1F #231F9B
analogous
#9B611F #979B1F #599B1F
triadic
#979B1F #1F979B #9B1F97
tetradic
#979B1F #1F9B61 #231F9B #9B1F59
square
#979B1F #1F9B61 #231F9B #9B1F59
split-complementary
#979B1F #1F599B #611F9B
monochromatic
#34350B #656815 #979B1F #C9CE29 #D9DD57

Accessibility & contrast

On white

2.99
#979B1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#979B1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979B1F
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979B1F#FFFFFF#000000##000000
##979B1F1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#A8972B
Tritanopia (blue-blind)
#A29184
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #979b1f;
/* rgb */ color: rgb(151, 155, 31);
/* oklch */ color: oklch(66.5% 0.137 111.5);
Tailwind
colors: {
  custom: {
    50: '#b9b867',
    500: '#979b1f',
    950: '#000000',
  },
}
SCSS
$custom: #979b1f;
$custom-light: #b9b867;
$custom-dark: #000000;
JSON
{
  "hex": "#979b1f",
  "rgb": {
    "r": 151,
    "g": 155,
    "b": 31
  },
  "hsl": {
    "h": 61.935,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.66487,
    "c": 0.13738,
    "h": 111.5
  },
  "luminance": 0.30121
}

Semantic roles & 50–950 ramp

primary
#979B1F
secondary
#5855C1
accent
#3EEA44
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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