#978D2A#978D2A

#978D2A is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.4% C 0.117 H 103.5°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#978D2A
RGBrgb(151, 141, 42)
HSLhsl(54, 56%, 38%)
HSVhsv(54, 72%, 59%)
CMYKcmyk(0%, 6.6%, 72.2%, 40.8%)
CIE-LABlab(57.84, -8.05, 51.32)
CIE-LCHlch(57.84, 51.95, 98.91°)
OKLaboklab(63.38% -0.0273 0.114)
OKLCHoklch(63.38% 0.117 103.5)
XYZxyz(22.7063, 25.7972, 5.9733)
Luminance0.2580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D2A #2A3497
analogous
#97562A #978D2A #6B972A
triadic
#978D2A #2A978D #8D2A97
tetradic
#978D2A #2A9756 #2A3497 #972A6B
square
#978D2A #2A9756 #2A3497 #972A6B
split-complementary
#978D2A #2A6B97 #562A97
monochromatic
#37340F #67601D #978D2A #C7BA37 #D5CB67

Accessibility & contrast

On white

3.41
#978D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#978D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D2A
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D2A#FFFFFF#000000##000000
##978D2A1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A881A
Deuteranopia (green-blind)
#9D8D31
Tritanopia (blue-blind)
#A38379
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d2a;
/* rgb */ color: rgb(151, 141, 42);
/* oklch */ color: oklch(63.4% 0.117 103.5);
Tailwind
colors: {
  custom: {
    50: '#b9ae6a',
    500: '#978d2a',
    950: '#000000',
  },
}
SCSS
$custom: #978d2a;
$custom-light: #b9ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#978d2a",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 54.495,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63383,
    "c": 0.11723,
    "h": 103.5
  },
  "luminance": 0.25796
}

Semantic roles & 50–950 ramp

primary
#978D2A
secondary
#626ABB
accent
#56E048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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