#978731#978731

#978731 is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.1% C 0.107 H 98.7°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#978731
RGBrgb(151, 135, 49)
HSLhsl(51, 51%, 39%)
HSVhsv(51, 68%, 59%)
CMYKcmyk(0%, 10.6%, 67.5%, 40.8%)
CIE-LABlab(56.22, -4.37, 46.73)
CIE-LCHlch(56.22, 46.94, 95.35°)
OKLaboklab(62.11% -0.0161 0.1056)
OKLCHoklch(62.11% 0.107 98.7)
XYZxyz(21.9818, 24.1300, 6.4048)
Luminance0.2413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978731 #314197
analogous
#975431 #978731 #749731
triadic
#978731 #319787 #873197
tetradic
#978731 #319754 #314197 #973174
square
#978731 #319754 #314197 #973174
split-complementary
#978731 #317497 #543197
monochromatic
#3B3413 #695E22 #978731 #C2AE43 #D1C271

Accessibility & contrast

On white

3.60
#978731 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#978731 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978731
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978731#FFFFFF#000000##000000
##9787311.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948426
Deuteranopia (green-blind)
#988936
Tritanopia (blue-blind)
#A37D75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #978731;
/* rgb */ color: rgb(151, 135, 49);
/* oklch */ color: oklch(62.1% 0.107 98.7);
Tailwind
colors: {
  custom: {
    50: '#b9a96e',
    500: '#978731',
    950: '#000000',
  },
}
SCSS
$custom: #978731;
$custom-light: #b9a96e;
$custom-dark: #000000;
JSON
{
  "hex": "#978731",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 49
  },
  "hsl": {
    "h": 50.588,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.62109,
    "c": 0.10677,
    "h": 98.7
  },
  "luminance": 0.24129
}

Semantic roles & 50–950 ramp

primary
#978731
secondary
#6B77B9
accent
#63DA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #978731

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

Preview Lab → · Contrast checker → · Palette generator →

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