#978A1F#978A1F

#978A1F is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.6% C 0.121 H 102.0°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#978A1F
RGBrgb(151, 138, 31)
HSLhsl(54, 66%, 36%)
HSVhsv(54, 79%, 59%)
CMYKcmyk(0%, 8.6%, 79.5%, 40.8%)
CIE-LABlab(56.94, -6.92, 54.47)
CIE-LCHlch(56.94, 54.91, 97.24°)
OKLaboklab(62.64% -0.0252 0.1185)
OKLCHoklch(62.64% 0.121 102)
XYZxyz(22.0994, 24.8562, 4.9297)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A1F #1F2C97
analogous
#974E1F #978A1F #68971F
triadic
#978A1F #1F978A #8A1F97
tetradic
#978A1F #1F974E #1F2C97 #971F68
square
#978A1F #1F974E #1F2C97 #971F68
split-complementary
#978A1F #1F6897 #4E1F97
monochromatic
#312D0A #645C15 #978A1F #CAB829 #DCCD54

Accessibility & contrast

On white

3.52
#978A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#978A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978A1F
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978A1F#FFFFFF#000000##000000
##978A1F1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #978a1f;
/* rgb */ color: rgb(151, 138, 31);
/* oklch */ color: oklch(62.6% 0.121 102.0);
Tailwind
colors: {
  custom: {
    50: '#b9ab65',
    500: '#978a1f',
    950: '#000000',
  },
}
SCSS
$custom: #978a1f;
$custom-light: #b9ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#978a1f",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 53.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.6264,
    "c": 0.12118,
    "h": 102
  },
  "luminance": 0.24855
}

Semantic roles & 50–950 ramp

primary
#978A1F
secondary
#525EBF
accent
#51E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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