#978A1D#978A1D

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

Color values

HEX#978A1D
RGBrgb(151, 138, 29)
HSLhsl(54, 68%, 35%)
HSVhsv(54, 81%, 59%)
CMYKcmyk(0%, 8.6%, 80.8%, 40.8%)
CIE-LABlab(56.93, -6.99, 55.10)
CIE-LCHlch(56.93, 55.55, 97.23°)
OKLaboklab(62.63% -0.0256 0.1195)
OKLCHoklch(62.63% 0.122 102.1)
XYZxyz(22.0738, 24.8460, 4.7952)
Luminance0.2485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978A1D #1D2A97
analogous
#974D1D #978A1D #67971D
triadic
#978A1D #1D978A #8A1D97
tetradic
#978A1D #1D974D #1D2A97 #971D67
square
#978A1D #1D974D #1D2A97 #971D67
split-complementary
#978A1D #1D6797 #4D1D97
monochromatic
#302C09 #645B13 #978A1D #CAB927 #DECF51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978A1D#FFFFFF#000000##000000
##978A1D1.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)
#988600
Deuteranopia (green-blind)
#9B8B26
Tritanopia (blue-blind)
#A38076
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978a1d;
/* rgb */ color: rgb(151, 138, 29);
/* oklch */ color: oklch(62.6% 0.122 102.1);
Tailwind
colors: {
  custom: {
    50: '#b9ab64',
    500: '#978a1d',
    950: '#000000',
  },
}
SCSS
$custom: #978a1d;
$custom-light: #b9ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#978a1d",
  "rgb": {
    "r": 151,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 53.607,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.62629,
    "c": 0.1222,
    "h": 102.1
  },
  "luminance": 0.24845
}

Semantic roles & 50–950 ramp

primary
#978A1D
secondary
#4F5BC0
accent
#50EB3D
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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