#978F1A#978F1A

#978F1A is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.7% C 0.128 H 105.3°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#978F1A
RGBrgb(151, 143, 26)
HSLhsl(56, 71%, 35%)
HSVhsv(56, 83%, 59%)
CMYKcmyk(0%, 5.3%, 82.8%, 40.8%)
CIE-LABlab(58.32, -9.80, 57.22)
CIE-LCHlch(58.32, 58.06, 99.72°)
OKLaboklab(63.73% -0.0337 0.1235)
OKLCHoklch(63.73% 0.128 105.3)
XYZxyz(22.7724, 26.2997, 4.8539)
Luminance0.2630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F1A #1A2297
analogous
#97511A #978F1A #61971A
triadic
#978F1A #1A978F #8F1A97
tetradic
#978F1A #1A9751 #1A2297 #971A61
square
#978F1A #1A9751 #1A2297 #971A61
split-complementary
#978F1A #1A6197 #511A97
monochromatic
#2F2C08 #635E11 #978F1A #CBC023 #E0D74B

Accessibility & contrast

On white

3.35
#978F1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#978F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F1A
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F1A#FFFFFF#000000##000000
##978F1A1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#9F8E25
Tritanopia (blue-blind)
#A3857A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f1a;
/* rgb */ color: rgb(151, 143, 26);
/* oklch */ color: oklch(63.7% 0.128 105.3);
Tailwind
colors: {
  custom: {
    50: '#b9af63',
    500: '#978f1a',
    950: '#000000',
  },
}
SCSS
$custom: #978f1a;
$custom-light: #b9af63;
$custom-dark: #000000;
JSON
{
  "hex": "#978f1a",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 26
  },
  "hsl": {
    "h": 56.16,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.63734,
    "c": 0.12799,
    "h": 105.3
  },
  "luminance": 0.26299
}

Semantic roles & 50–950 ramp

primary
#978F1A
secondary
#4B52C2
accent
#46ED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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