#978A2A#978A2A

#978A2A is a light, moderate yellow. Relative luminance 0.249; OKLCH L 62.7% C 0.115 H 101.4°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#978A2A
RGBrgb(151, 138, 42)
HSLhsl(53, 56%, 38%)
HSVhsv(53, 72%, 59%)
CMYKcmyk(0%, 8.6%, 72.2%, 40.8%)
CIE-LABlab(57.00, -6.42, 50.49)
CIE-LCHlch(57.00, 50.90, 97.24°)
OKLaboklab(62.71% -0.0227 0.1123)
OKLCHoklch(62.71% 0.115 101.4)
XYZxyz(22.2699, 24.9244, 5.8279)
Luminance0.2492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A2A #2A3797
analogous
#97532A #978A2A #6D972A
triadic
#978A2A #2A978A #8A2A97
tetradic
#978A2A #2A9753 #2A3797 #972A6D
square
#978A2A #2A9753 #2A3797 #972A6D
split-complementary
#978A2A #2A6D97 #532A97
monochromatic
#37320F #675E1D #978A2A #C7B637 #D5C867

Accessibility & contrast

On white

3.51
#978A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#978A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A2A
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A2A#FFFFFF#000000##000000
##978A2A1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861B
Deuteranopia (green-blind)
#9B8B30
Tritanopia (blue-blind)
#A38077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a2a;
/* rgb */ color: rgb(151, 138, 42);
/* oklch */ color: oklch(62.7% 0.115 101.4);
Tailwind
colors: {
  custom: {
    50: '#b9ab6a',
    500: '#978a2a',
    950: '#000000',
  },
}
SCSS
$custom: #978a2a;
$custom-light: #b9ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#978a2a",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 52.844,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.62714,
    "c": 0.11453,
    "h": 101.4
  },
  "luminance": 0.24923
}

Semantic roles & 50–950 ramp

primary
#978A2A
secondary
#626DBB
accent
#5AE048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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