#979331#979331

#979331 is a light, moderate yellow. Relative luminance 0.277; OKLCH L 64.8% C 0.118 H 107.0°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#979331
RGBrgb(151, 147, 49)
HSLhsl(58, 51%, 39%)
HSVhsv(58, 68%, 59%)
CMYKcmyk(0%, 2.6%, 67.5%, 40.8%)
CIE-LABlab(59.59, -10.88, 50.23)
CIE-LCHlch(59.59, 51.39, 102.22°)
OKLaboklab(64.79% -0.0345 0.1129)
OKLCHoklch(64.79% 0.118 107)
XYZxyz(23.7515, 27.6693, 6.9947)
Luminance0.2767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#979331 #313597
analogous
#976031 #979331 #689731
triadic
#979331 #319793 #933197
tetradic
#979331 #319760 #313597 #973168
square
#979331 #319760 #313597 #973168
split-complementary
#979331 #316897 #603197
monochromatic
#3B3913 #696622 #979331 #C2BD43 #D1CD71

Accessibility & contrast

On white

3.21
#979331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#979331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #979331
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##979331#FFFFFF#000000##000000
##9793311.003.216.536.53
#FFFFFF3.211.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8D23
Deuteranopia (green-blind)
#A19137
Tritanopia (blue-blind)
#A2897F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #979331;
/* rgb */ color: rgb(151, 147, 49);
/* oklch */ color: oklch(64.8% 0.118 107.0);
Tailwind
colors: {
  custom: {
    50: '#b8b26f',
    500: '#979331',
    950: '#000000',
  },
}
SCSS
$custom: #979331;
$custom-light: #b8b26f;
$custom-dark: #000000;
JSON
{
  "hex": "#979331",
  "rgb": {
    "r": 151,
    "g": 147,
    "b": 49
  },
  "hsl": {
    "h": 57.647,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64788,
    "c": 0.1181,
    "h": 107
  },
  "luminance": 0.27668
}

Semantic roles & 50–950 ramp

primary
#979331
secondary
#6B6EB9
accent
#53DA4D
background
#FBFAF6
surface
#F6F5EC
border
#D0CFC7
text
#121008
muted
#817F7B

Preview Lab

Preview with #979331

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

Preview Lab → · Contrast checker → · Palette generator →

#979331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva