#978C1D#978C1D

#978C1D is a light, vivid yellow. Relative luminance 0.254; OKLCH L 63.1% C 0.124 H 103.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#978C1D
RGBrgb(151, 140, 29)
HSLhsl(55, 68%, 35%)
HSVhsv(55, 81%, 59%)
CMYKcmyk(0%, 7.3%, 80.8%, 40.8%)
CIE-LABlab(57.49, -8.08, 55.60)
CIE-LCHlch(57.49, 56.19, 98.27°)
OKLaboklab(63.08% -0.0287 0.1206)
OKLCHoklch(63.08% 0.124 103.4)
XYZxyz(22.3634, 25.4252, 4.8917)
Luminance0.2542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C1D #1D2897
analogous
#974F1D #978C1D #65971D
triadic
#978C1D #1D978C #8C1D97
tetradic
#978C1D #1D974F #1D2897 #971D65
square
#978C1D #1D974F #1D2897 #971D65
split-complementary
#978C1D #1D6597 #4F1D97
monochromatic
#302D09 #645C13 #978C1D #CABC27 #DED151

Accessibility & contrast

On white

3.45
#978C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#978C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978C1D
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978C1D#FFFFFF#000000##000000
##978C1D1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#9D8C26
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c1d;
/* rgb */ color: rgb(151, 140, 29);
/* oklch */ color: oklch(63.1% 0.124 103.4);
Tailwind
colors: {
  custom: {
    50: '#b9ad64',
    500: '#978c1d',
    950: '#000000',
  },
}
SCSS
$custom: #978c1d;
$custom-light: #b9ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#978c1d",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 54.59,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63076,
    "c": 0.12393,
    "h": 103.4
  },
  "luminance": 0.25424
}

Semantic roles & 50–950 ramp

primary
#978C1D
secondary
#4F5AC0
accent
#4DEB3D
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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