#979E1F#979E1F

#979E1F is a light, vivid yellow. Relative luminance 0.311; OKLCH L 67.2% C 0.141 H 112.9°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#979E1F
RGBrgb(151, 158, 31)
HSLhsl(63, 67%, 37%)
HSVhsv(63, 80%, 62%)
CMYKcmyk(4.4%, 0%, 80.4%, 38%)
CIE-LABlab(62.62, -17.51, 59.55)
CIE-LCHlch(62.62, 62.07, 106.38°)
OKLaboklab(67.18% -0.0547 0.1294)
OKLCHoklch(67.18% 0.141 112.9)
XYZxyz(25.2375, 31.1325, 5.9758)
Luminance0.3113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979E1F #261F9E
analogous
#9E661F #979E1F #589E1F
triadic
#979E1F #1F979E #9E1F97
tetradic
#979E1F #1F9E66 #261F9E #9E1F58
square
#979E1F #1F9E66 #261F9E #9E1F58
split-complementary
#979E1F #1F589E #661F9E
monochromatic
#35380B #666B15 #979E1F #C8D129 #D7DE59

Accessibility & contrast

On white

2.91
#979E1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#979E1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #979E1F
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979E1F#FFFFFF#000000##000000
##979E1F1.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9600
Deuteranopia (green-blind)
#AB992B
Tritanopia (blue-blind)
#A29487
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #979e1f;
/* rgb */ color: rgb(151, 158, 31);
/* oklch */ color: oklch(67.2% 0.141 112.9);
Tailwind
colors: {
  custom: {
    50: '#b9ba67',
    500: '#979e1f',
    950: '#000000',
  },
}
SCSS
$custom: #979e1f;
$custom-light: #b9ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#979e1f",
  "rgb": {
    "r": 151,
    "g": 158,
    "b": 31
  },
  "hsl": {
    "h": 63.307,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.67176,
    "c": 0.14051,
    "h": 112.9
  },
  "luminance": 0.31132
}

Semantic roles & 50–950 ramp

primary
#979E1F
secondary
#5C56C2
accent
#3EEA47
background
#FBFBF6
surface
#F7F6EB
border
#D0D0C6
text
#121107
muted
#81807A

Preview Lab

Preview with #979E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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