#978831#978831

#978831 is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.3% C 0.108 H 99.4°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#978831
RGBrgb(151, 136, 49)
HSLhsl(51, 51%, 39%)
HSVhsv(51, 68%, 59%)
CMYKcmyk(0%, 9.9%, 67.5%, 40.8%)
CIE-LABlab(56.50, -4.92, 47.02)
CIE-LCHlch(56.50, 47.28, 95.98°)
OKLaboklab(62.33% -0.0176 0.1062)
OKLCHoklch(62.33% 0.108 99.4)
XYZxyz(22.1220, 24.4104, 6.4516)
Luminance0.2441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978831 #314097
analogous
#975531 #978831 #739731
triadic
#978831 #319788 #883197
tetradic
#978831 #319755 #314097 #973173
square
#978831 #319755 #314097 #973173
split-complementary
#978831 #317397 #553197
monochromatic
#3B3513 #695E22 #978831 #C2AF43 #D1C371

Accessibility & contrast

On white

3.57
#978831 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#978831 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978831
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978831#FFFFFF#000000##000000
##9788311.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958426
Deuteranopia (green-blind)
#998A36
Tritanopia (blue-blind)
#A37E76
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978831;
/* rgb */ color: rgb(151, 136, 49);
/* oklch */ color: oklch(62.3% 0.108 99.4);
Tailwind
colors: {
  custom: {
    50: '#b9aa6e',
    500: '#978831',
    950: '#000000',
  },
}
SCSS
$custom: #978831;
$custom-light: #b9aa6e;
$custom-dark: #000000;
JSON
{
  "hex": "#978831",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 49
  },
  "hsl": {
    "h": 51.176,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.6233,
    "c": 0.10763,
    "h": 99.4
  },
  "luminance": 0.24409
}

Semantic roles & 50–950 ramp

primary
#978831
secondary
#6B76B9
accent
#62DA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #978831

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

Preview Lab → · Contrast checker → · Palette generator →

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