#978A31#978A31

#978A31 is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.8% C 0.109 H 100.9°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#978A31
RGBrgb(151, 138, 49)
HSLhsl(52, 51%, 39%)
HSVhsv(52, 68%, 59%)
CMYKcmyk(0%, 8.6%, 67.5%, 40.8%)
CIE-LABlab(57.05, -6.02, 47.61)
CIE-LCHlch(57.05, 47.99, 97.21°)
OKLaboklab(62.77% -0.0207 0.1074)
OKLCHoklch(62.77% 0.109 100.9)
XYZxyz(22.4063, 24.9790, 6.5463)
Luminance0.2498 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A31 #313E97
analogous
#975731 #978A31 #719731
triadic
#978A31 #31978A #8A3197
tetradic
#978A31 #319757 #313E97 #973171
square
#978A31 #319757 #313E97 #973171
split-complementary
#978A31 #317197 #573197
monochromatic
#3B3613 #696022 #978A31 #C2B243 #D1C571

Accessibility & contrast

On white

3.50
#978A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#978A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A31
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A31#FFFFFF#000000##000000
##978A311.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978625
Deuteranopia (green-blind)
#9A8B36
Tritanopia (blue-blind)
#A28078
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a31;
/* rgb */ color: rgb(151, 138, 49);
/* oklch */ color: oklch(62.8% 0.109 100.9);
Tailwind
colors: {
  custom: {
    50: '#b9ab6e',
    500: '#978a31',
    950: '#000000',
  },
}
SCSS
$custom: #978a31;
$custom-light: #b9ab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#978a31",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 52.353,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.62773,
    "c": 0.1094,
    "h": 100.9
  },
  "luminance": 0.24978
}

Semantic roles & 50–950 ramp

primary
#978A31
secondary
#6B75B9
accent
#5FDA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978A31

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

Preview Lab → · Contrast checker → · Palette generator →

#978A31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva