#978F1F#978F1F

#978F1F is a light, vivid yellow. Relative luminance 0.263; OKLCH L 63.8% C 0.126 H 105.1°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#978F1F
RGBrgb(151, 143, 31)
HSLhsl(56, 66%, 36%)
HSVhsv(56, 79%, 59%)
CMYKcmyk(0%, 5.3%, 79.5%, 40.8%)
CIE-LABlab(58.34, -9.62, 55.74)
CIE-LCHlch(58.34, 56.56, 99.80°)
OKLaboklab(63.76% -0.0328 0.1213)
OKLCHoklch(63.76% 0.126 105.1)
XYZxyz(22.8333, 26.3241, 5.1744)
Luminance0.2632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F1F #1F2797
analogous
#97531F #978F1F #63971F
triadic
#978F1F #1F978F #8F1F97
tetradic
#978F1F #1F9753 #1F2797 #971F63
square
#978F1F #1F9753 #1F2797 #971F63
split-complementary
#978F1F #1F6397 #531F97
monochromatic
#312F0A #645F15 #978F1F #CABF29 #DCD354

Accessibility & contrast

On white

3.35
#978F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#978F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978F1F
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978F1F#FFFFFF#000000##000000
##978F1F1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#9F8E28
Tritanopia (blue-blind)
#A3857A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f1f;
/* rgb */ color: rgb(151, 143, 31);
/* oklch */ color: oklch(63.8% 0.126 105.1);
Tailwind
colors: {
  custom: {
    50: '#b9af65',
    500: '#978f1f',
    950: '#000000',
  },
}
SCSS
$custom: #978f1f;
$custom-light: #b9af65;
$custom-dark: #000000;
JSON
{
  "hex": "#978f1f",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 56,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6376,
    "c": 0.12561,
    "h": 105.1
  },
  "luminance": 0.26323
}

Semantic roles & 50–950 ramp

primary
#978F1F
secondary
#525ABF
accent
#4AE93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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