#978C1F#978C1F

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

Color values

HEX#978C1F
RGBrgb(151, 140, 31)
HSLhsl(55, 66%, 36%)
HSVhsv(55, 79%, 59%)
CMYKcmyk(0%, 7.3%, 79.5%, 40.8%)
CIE-LABlab(57.50, -8.00, 54.97)
CIE-LCHlch(57.50, 55.55, 98.28°)
OKLaboklab(63.09% -0.0283 0.1196)
OKLCHoklch(63.09% 0.123 103.3)
XYZxyz(22.3889, 25.4354, 5.0263)
Luminance0.2543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C1F #1F2A97
analogous
#97501F #978C1F #66971F
triadic
#978C1F #1F978C #8C1F97
tetradic
#978C1F #1F9750 #1F2A97 #971F66
square
#978C1F #1F9750 #1F2A97 #971F66
split-complementary
#978C1F #1F6697 #501F97
monochromatic
#312E0A #645D15 #978C1F #CABB29 #DCD054

Accessibility & contrast

On white

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

On black

6.09
#978C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C1F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C1F#FFFFFF#000000##000000
##978C1F1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#998702
Deuteranopia (green-blind)
#9D8C28
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c1f;
/* rgb */ color: rgb(151, 140, 31);
/* oklch */ color: oklch(63.1% 0.123 103.3);
Tailwind
colors: {
  custom: {
    50: '#b9ad65',
    500: '#978c1f',
    950: '#000000',
  },
}
SCSS
$custom: #978c1f;
$custom-light: #b9ad65;
$custom-dark: #000000;
JSON
{
  "hex": "#978c1f",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 54.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.63087,
    "c": 0.12292,
    "h": 103.3
  },
  "luminance": 0.25434
}

Semantic roles & 50–950 ramp

primary
#978C1F
secondary
#525CBF
accent
#4FE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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