#978C1A#978C1A

#978C1A is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.125 H 103.5°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#978C1A
RGBrgb(151, 140, 26)
HSLhsl(55, 71%, 35%)
HSVhsv(55, 83%, 59%)
CMYKcmyk(0%, 7.3%, 82.8%, 40.8%)
CIE-LABlab(57.47, -8.18, 56.49)
CIE-LCHlch(57.47, 57.08, 98.24°)
OKLaboklab(63.06% -0.0292 0.1219)
OKLCHoklch(63.06% 0.125 103.5)
XYZxyz(22.3281, 25.4110, 4.7058)
Luminance0.2541 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C1A #1A2597
analogous
#974E1A #978C1A #64971A
triadic
#978C1A #1A978C #8C1A97
tetradic
#978C1A #1A974E #1A2597 #971A64
square
#978C1A #1A974E #1A2597 #971A64
split-complementary
#978C1A #1A6497 #4E1A97
monochromatic
#2F2B08 #635C11 #978C1A #CBBC23 #E0D34B

Accessibility & contrast

On white

3.45
#978C1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#978C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C1A
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C1A#FFFFFF#000000##000000
##978C1A1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9D8C24
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c1a;
/* rgb */ color: rgb(151, 140, 26);
/* oklch */ color: oklch(63.1% 0.125 103.5);
Tailwind
colors: {
  custom: {
    50: '#b9ad63',
    500: '#978c1a',
    950: '#000000',
  },
}
SCSS
$custom: #978c1a;
$custom-light: #b9ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#978c1a",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 26
  },
  "hsl": {
    "h": 54.72,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.6306,
    "c": 0.12534,
    "h": 103.5
  },
  "luminance": 0.2541
}

Semantic roles & 50–950 ramp

primary
#978C1A
secondary
#4B55C2
accent
#4AED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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