#978A42#978A42

#978A42 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 63.0% C 0.094 H 99.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978A42
RGBrgb(151, 138, 66)
HSLhsl(51, 39%, 43%)
HSVhsv(51, 56%, 59%)
CMYKcmyk(0%, 8.6%, 56.3%, 40.8%)
CIE-LABlab(57.22, -4.78, 39.76)
CIE-LCHlch(57.22, 40.04, 96.86°)
OKLaboklab(62.96% -0.0151 0.0931)
OKLCHoklch(62.96% 0.094 99.2)
XYZxyz(22.8351, 25.1505, 8.8049)
Luminance0.2515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A42 #424F97
analogous
#976042 #978A42 #799742
triadic
#978A42 #42978A #8A4297
tetradic
#978A42 #429760 #424F97 #974279
square
#978A42 #429760 #424F97 #974279
split-complementary
#978A42 #427997 #604297
monochromatic
#423C1D #6C632F #978A42 #B8AB5E #CBC188

Accessibility & contrast

On white

3.48
#978A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#978A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A42
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A42#FFFFFF#000000##000000
##978A421.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#96873B
Deuteranopia (green-blind)
#998B45
Tritanopia (blue-blind)
#A2817A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a42;
/* rgb */ color: rgb(151, 138, 66);
/* oklch */ color: oklch(63.0% 0.094 99.2);
Tailwind
colors: {
  custom: {
    50: '#b8ab79',
    500: '#978a42',
    950: '#000000',
  },
}
SCSS
$custom: #978a42;
$custom-light: #b8ab79;
$custom-dark: #000000;
JSON
{
  "hex": "#978a42",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 50.824,
    "s": 39.171,
    "l": 42.549
  },
  "oklch": {
    "l": 0.62959,
    "c": 0.09428,
    "h": 99.2
  },
  "luminance": 0.2515
}

Semantic roles & 50–950 ramp

primary
#978A42
secondary
#7F87B6
accent
#6BCF59
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #978A42

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

Preview Lab → · Contrast checker → · Palette generator →

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