#978031#978031

#978031 is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.101 H 92.8°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#978031
RGBrgb(151, 128, 49)
HSLhsl(46, 51%, 39%)
HSVhsv(46, 68%, 59%)
CMYKcmyk(0%, 15.2%, 67.5%, 40.8%)
CIE-LABlab(54.28, -0.49, 44.69)
CIE-LCHlch(54.28, 44.69, 90.63°)
OKLaboklab(60.58% -0.0049 0.1012)
OKLCHoklch(60.58% 0.101 92.8)
XYZxyz(21.0371, 22.2406, 6.0899)
Luminance0.2224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978031 #314897
analogous
#974D31 #978031 #7B9731
triadic
#978031 #319780 #803197
tetradic
#978031 #31974D #314897 #97317B
square
#978031 #31974D #314897 #97317B
split-complementary
#978031 #317B97 #4D3197
monochromatic
#3B3213 #695922 #978031 #C2A543 #D1BB71

Accessibility & contrast

On white

3.85
#978031 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#978031 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978031
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978031#FFFFFF#000000##000000
##9780311.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E27
Deuteranopia (green-blind)
#938535
Tritanopia (blue-blind)
#A3766F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978031;
/* rgb */ color: rgb(151, 128, 49);
/* oklch */ color: oklch(60.6% 0.101 92.8);
Tailwind
colors: {
  custom: {
    50: '#b9a46d',
    500: '#978031',
    950: '#000000',
  },
}
SCSS
$custom: #978031;
$custom-light: #b9a46d;
$custom-dark: #000000;
JSON
{
  "hex": "#978031",
  "rgb": {
    "r": 151,
    "g": 128,
    "b": 49
  },
  "hsl": {
    "h": 46.471,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.60577,
    "c": 0.10136,
    "h": 92.8
  },
  "luminance": 0.22239
}

Semantic roles & 50–950 ramp

primary
#978031
secondary
#6B7DB9
accent
#6DDA4D
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #978031

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

Preview Lab → · Contrast checker → · Palette generator →

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