#978C2A#978C2A

#978C2A is a light, moderate yellow. Relative luminance 0.255; OKLCH L 63.2% C 0.116 H 102.8°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#978C2A
RGBrgb(151, 140, 42)
HSLhsl(54, 56%, 38%)
HSVhsv(54, 72%, 59%)
CMYKcmyk(0%, 7.3%, 72.2%, 40.8%)
CIE-LABlab(57.56, -7.51, 51.05)
CIE-LCHlch(57.56, 51.59, 98.36°)
OKLaboklab(63.16% -0.0258 0.1134)
OKLCHoklch(63.16% 0.116 102.8)
XYZxyz(22.5595, 25.5036, 5.9244)
Luminance0.2550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C2A #2A3597
analogous
#97552A #978C2A #6B972A
triadic
#978C2A #2A978C #8C2A97
tetradic
#978C2A #2A9755 #2A3597 #972A6B
square
#978C2A #2A9755 #2A3597 #972A6B
split-complementary
#978C2A #2A6B97 #552A97
monochromatic
#37330F #67601D #978C2A #C7B837 #D5CA67

Accessibility & contrast

On white

3.44
#978C2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#978C2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C2A
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C2A#FFFFFF#000000##000000
##978C2A1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871A
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#A38279
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c2a;
/* rgb */ color: rgb(151, 140, 42);
/* oklch */ color: oklch(63.2% 0.116 102.8);
Tailwind
colors: {
  custom: {
    50: '#b9ad6a',
    500: '#978c2a',
    950: '#000000',
  },
}
SCSS
$custom: #978c2a;
$custom-light: #b9ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#978c2a",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 42
  },
  "hsl": {
    "h": 53.945,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.6316,
    "c": 0.11632,
    "h": 102.8
  },
  "luminance": 0.25503
}

Semantic roles & 50–950 ramp

primary
#978C2A
secondary
#626BBB
accent
#57E048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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