#978B2A#978B2A

#978B2A is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.115 H 102.1°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#978B2A
RGBrgb(151, 139, 42)
HSLhsl(53, 56%, 38%)
HSVhsv(53, 72%, 59%)
CMYKcmyk(0%, 7.9%, 72.2%, 40.8%)
CIE-LABlab(57.28, -6.96, 50.77)
CIE-LCHlch(57.28, 51.24, 97.81°)
OKLaboklab(62.94% -0.0242 0.1128)
OKLCHoklch(62.94% 0.115 102.1)
XYZxyz(22.4140, 25.2127, 5.8759)
Luminance0.2521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B2A #2A3697
analogous
#97542A #978B2A #6D972A
triadic
#978B2A #2A978B #8B2A97
tetradic
#978B2A #2A9754 #2A3697 #972A6D
square
#978B2A #2A9754 #2A3697 #972A6D
split-complementary
#978B2A #2A6D97 #542A97
monochromatic
#37330F #675F1D #978B2A #C7B737 #D5C967

Accessibility & contrast

On white

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

On black

6.04
#978B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B2A
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B2A#FFFFFF#000000##000000
##978B2A1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871B
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#A38178
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b2a;
/* rgb */ color: rgb(151, 139, 42);
/* oklch */ color: oklch(62.9% 0.115 102.1);
Tailwind
colors: {
  custom: {
    50: '#b9ac6a',
    500: '#978b2a',
    950: '#000000',
  },
}
SCSS
$custom: #978b2a;
$custom-light: #b9ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#978b2a",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 53.394,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.62936,
    "c": 0.11541,
    "h": 102.1
  },
  "luminance": 0.25212
}

Semantic roles & 50–950 ramp

primary
#978B2A
secondary
#626CBB
accent
#59E048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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