#978D1A#978D1A

#978D1A is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.3% C 0.126 H 104.1°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#978D1A
RGBrgb(151, 141, 26)
HSLhsl(55, 71%, 35%)
HSVhsv(55, 83%, 59%)
CMYKcmyk(0%, 6.6%, 82.8%, 40.8%)
CIE-LABlab(57.76, -8.72, 56.74)
CIE-LCHlch(57.76, 57.40, 98.74°)
OKLaboklab(63.29% -0.0307 0.1224)
OKLCHoklch(63.29% 0.126 104.1)
XYZxyz(22.4749, 25.7046, 4.7547)
Luminance0.2570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D1A #1A2497
analogous
#974F1A #978D1A #63971A
triadic
#978D1A #1A978D #8D1A97
tetradic
#978D1A #1A974F #1A2497 #971A63
square
#978D1A #1A974F #1A2497 #971A63
split-complementary
#978D1A #1A6397 #4F1A97
monochromatic
#2F2B08 #635C11 #978D1A #CBBE23 #E0D44B

Accessibility & contrast

On white

3.42
#978D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#978D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D1A
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D1A#FFFFFF#000000##000000
##978D1A1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#9E8D24
Tritanopia (blue-blind)
#A38378
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d1a;
/* rgb */ color: rgb(151, 141, 26);
/* oklch */ color: oklch(63.3% 0.126 104.1);
Tailwind
colors: {
  custom: {
    50: '#b9ae63',
    500: '#978d1a',
    950: '#000000',
  },
}
SCSS
$custom: #978d1a;
$custom-light: #b9ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#978d1a",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 55.2,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.63285,
    "c": 0.1262,
    "h": 104.1
  },
  "luminance": 0.25704
}

Semantic roles & 50–950 ramp

primary
#978D1A
secondary
#4B54C2
accent
#49ED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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