#978B1D#978B1D

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

Color values

HEX#978B1D
RGBrgb(151, 139, 29)
HSLhsl(54, 68%, 35%)
HSVhsv(54, 81%, 59%)
CMYKcmyk(0%, 7.9%, 80.8%, 40.8%)
CIE-LABlab(57.21, -7.54, 55.35)
CIE-LCHlch(57.21, 55.86, 97.75°)
OKLaboklab(62.85% -0.0271 0.12)
OKLCHoklch(62.85% 0.123 102.7)
XYZxyz(22.2179, 25.1342, 4.8432)
Luminance0.2513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978B1D #1D2997
analogous
#974E1D #978B1D #66971D
triadic
#978B1D #1D978B #8B1D97
tetradic
#978B1D #1D974E #1D2997 #971D66
square
#978B1D #1D974E #1D2997 #971D66
split-complementary
#978B1D #1D6697 #4E1D97
monochromatic
#302C09 #645C13 #978B1D #CABA27 #DED051

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978B1D#FFFFFF#000000##000000
##978B1D1.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)
#998600
Deuteranopia (green-blind)
#9C8C26
Tritanopia (blue-blind)
#A38177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #978b1d;
/* rgb */ color: rgb(151, 139, 29);
/* oklch */ color: oklch(62.9% 0.123 102.7);
Tailwind
colors: {
  custom: {
    50: '#b9ac64',
    500: '#978b1d',
    950: '#000000',
  },
}
SCSS
$custom: #978b1d;
$custom-light: #b9ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#978b1d",
  "rgb": {
    "r": 151,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 54.098,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.62852,
    "c": 0.12306,
    "h": 102.7
  },
  "luminance": 0.25133
}

Semantic roles & 50–950 ramp

primary
#978B1D
secondary
#4F5BC0
accent
#4EEB3D
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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