#978F2A#978F2A

#978F2A is a light, moderate yellow. Relative luminance 0.264; OKLCH L 63.8% C 0.119 H 104.8°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#978F2A
RGBrgb(151, 143, 42)
HSLhsl(56, 56%, 38%)
HSVhsv(56, 72%, 59%)
CMYKcmyk(0%, 5.3%, 72.2%, 40.8%)
CIE-LABlab(58.41, -9.13, 51.88)
CIE-LCHlch(58.41, 52.67, 99.98°)
OKLaboklab(63.83% -0.0303 0.1152)
OKLCHoklch(63.83% 0.119 104.8)
XYZxyz(23.0038, 26.3923, 6.0725)
Luminance0.2639 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F2A #2A3297
analogous
#97582A #978F2A #69972A
triadic
#978F2A #2A978F #8F2A97
tetradic
#978F2A #2A9758 #2A3297 #972A69
square
#978F2A #2A9758 #2A3297 #972A69
split-complementary
#978F2A #2A6997 #582A97
monochromatic
#37340F #67621D #978F2A #C7BC37 #D5CD67

Accessibility & contrast

On white

3.34
#978F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#978F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F2A
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F2A#FFFFFF#000000##000000
##978F2A1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A19
Deuteranopia (green-blind)
#9F8E31
Tritanopia (blue-blind)
#A2857B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f2a;
/* rgb */ color: rgb(151, 143, 42);
/* oklch */ color: oklch(63.8% 0.119 104.8);
Tailwind
colors: {
  custom: {
    50: '#b9af6b',
    500: '#978f2a',
    950: '#000000',
  },
}
SCSS
$custom: #978f2a;
$custom-light: #b9af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#978f2a",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 55.596,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63831,
    "c": 0.11911,
    "h": 104.8
  },
  "luminance": 0.26391
}

Semantic roles & 50–950 ramp

primary
#978F2A
secondary
#6268BB
accent
#53E048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #978F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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