#978B1F#978B1F

#978B1F is a light, vivid yellow. Relative luminance 0.251; OKLCH L 62.9% C 0.122 H 102.7°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#978B1F
RGBrgb(151, 139, 31)
HSLhsl(54, 66%, 36%)
HSVhsv(54, 79%, 59%)
CMYKcmyk(0%, 7.9%, 79.5%, 40.8%)
CIE-LABlab(57.22, -7.46, 54.72)
CIE-LCHlch(57.22, 55.23, 97.77°)
OKLaboklab(62.86% -0.0267 0.1191)
OKLCHoklch(62.86% 0.122 102.7)
XYZxyz(22.2435, 25.1445, 4.9778)
Luminance0.2514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B1F #1F2B97
analogous
#974F1F #978B1F #67971F
triadic
#978B1F #1F978B #8B1F97
tetradic
#978B1F #1F974F #1F2B97 #971F67
square
#978B1F #1F974F #1F2B97 #971F67
split-complementary
#978B1F #1F6797 #4F1F97
monochromatic
#312E0A #645C15 #978B1F #CABA29 #DCCE54

Accessibility & contrast

On white

3.48
#978B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#978B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978B1F
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978B1F#FFFFFF#000000##000000
##978B1F1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#9C8C27
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b1f;
/* rgb */ color: rgb(151, 139, 31);
/* oklch */ color: oklch(62.9% 0.122 102.7);
Tailwind
colors: {
  custom: {
    50: '#b9ac65',
    500: '#978b1f',
    950: '#000000',
  },
}
SCSS
$custom: #978b1f;
$custom-light: #b9ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#978b1f",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 54,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.62863,
    "c": 0.12205,
    "h": 102.7
  },
  "luminance": 0.25143
}

Semantic roles & 50–950 ramp

primary
#978B1F
secondary
#525DBF
accent
#50E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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