#978131#978131

#978131 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.8% C 0.102 H 93.7°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#978131
RGBrgb(151, 129, 49)
HSLhsl(47, 51%, 39%)
HSVhsv(47, 68%, 59%)
CMYKcmyk(0%, 14.6%, 67.5%, 40.8%)
CIE-LABlab(54.56, -1.05, 44.98)
CIE-LCHlch(54.56, 44.99, 91.33°)
OKLaboklab(60.79% -0.0065 0.1019)
OKLCHoklch(60.79% 0.102 93.7)
XYZxyz(21.1682, 22.5027, 6.1336)
Luminance0.2250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978131 #314797
analogous
#974E31 #978131 #7A9731
triadic
#978131 #319781 #813197
tetradic
#978131 #31974E #314797 #97317A
square
#978131 #31974E #314797 #97317A
split-complementary
#978131 #317A97 #4E3197
monochromatic
#3B3213 #695A22 #978131 #C2A743 #D1BC71

Accessibility & contrast

On white

3.82
#978131 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#978131 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978131
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978131#FFFFFF#000000##000000
##9781311.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7F27
Deuteranopia (green-blind)
#948535
Tritanopia (blue-blind)
#A37770
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978131;
/* rgb */ color: rgb(151, 129, 49);
/* oklch */ color: oklch(60.8% 0.102 93.7);
Tailwind
colors: {
  custom: {
    50: '#b9a56d',
    500: '#978131',
    950: '#000000',
  },
}
SCSS
$custom: #978131;
$custom-light: #b9a56d;
$custom-dark: #000000;
JSON
{
  "hex": "#978131",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 49
  },
  "hsl": {
    "h": 47.059,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.60794,
    "c": 0.10206,
    "h": 93.7
  },
  "luminance": 0.22502
}

Semantic roles & 50–950 ramp

primary
#978131
secondary
#6B7CB9
accent
#6CDA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #978131

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

Preview Lab → · Contrast checker → · Palette generator →

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