#978B1A#978B1A

#978B1A is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.8% C 0.124 H 102.8°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#978B1A
RGBrgb(151, 139, 26)
HSLhsl(54, 71%, 35%)
HSVhsv(54, 83%, 59%)
CMYKcmyk(0%, 7.9%, 82.8%, 40.8%)
CIE-LABlab(57.19, -7.64, 56.25)
CIE-LCHlch(57.19, 56.77, 97.74°)
OKLaboklab(62.84% -0.0277 0.1214)
OKLCHoklch(62.84% 0.124 102.8)
XYZxyz(22.1826, 25.1201, 4.6573)
Luminance0.2512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B1A #1A2697
analogous
#974D1A #978B1A #65971A
triadic
#978B1A #1A978B #8B1A97
tetradic
#978B1A #1A974D #1A2697 #971A65
square
#978B1A #1A974D #1A2697 #971A65
split-complementary
#978B1A #1A6597 #4D1A97
monochromatic
#2F2B08 #635B11 #978B1A #CBBB23 #E0D24B

Accessibility & contrast

On white

3.49
#978B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#978B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B1A
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B1A#FFFFFF#000000##000000
##978B1A1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#9C8C24
Tritanopia (blue-blind)
#A38077
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b1a;
/* rgb */ color: rgb(151, 139, 26);
/* oklch */ color: oklch(62.8% 0.124 102.8);
Tailwind
colors: {
  custom: {
    50: '#b9ac63',
    500: '#978b1a',
    950: '#000000',
  },
}
SCSS
$custom: #978b1a;
$custom-light: #b9ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#978b1a",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 54.24,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.62837,
    "c": 0.12448,
    "h": 102.8
  },
  "luminance": 0.25119
}

Semantic roles & 50–950 ramp

primary
#978B1A
secondary
#4B56C2
accent
#4CED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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