#978F1D#978F1D

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

Color values

HEX#978F1D
RGBrgb(151, 143, 29)
HSLhsl(56, 68%, 35%)
HSVhsv(56, 81%, 59%)
CMYKcmyk(0%, 5.3%, 80.8%, 40.8%)
CIE-LABlab(58.33, -9.70, 56.35)
CIE-LCHlch(58.33, 57.18, 99.76°)
OKLaboklab(63.75% -0.0332 0.1222)
OKLCHoklch(63.75% 0.127 105.2)
XYZxyz(22.8077, 26.3139, 5.0398)
Luminance0.2631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F1D #1D2597
analogous
#97521D #978F1D #62971D
triadic
#978F1D #1D978F #8F1D97
tetradic
#978F1D #1D9752 #1D2597 #971D62
square
#978F1D #1D9752 #1D2597 #971D62
split-complementary
#978F1D #1D6297 #521D97
monochromatic
#302E09 #645E13 #978F1D #CAC027 #DED451

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978F1D#FFFFFF#000000##000000
##978F1D1.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)
#9F8E27
Tritanopia (blue-blind)
#A3857A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #978f1d;
/* rgb */ color: rgb(151, 143, 29);
/* oklch */ color: oklch(63.7% 0.127 105.2);
Tailwind
colors: {
  custom: {
    50: '#b9af64',
    500: '#978f1d',
    950: '#000000',
  },
}
SCSS
$custom: #978f1d;
$custom-light: #b9af64;
$custom-dark: #000000;
JSON
{
  "hex": "#978f1d",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 29
  },
  "hsl": {
    "h": 56.066,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.63749,
    "c": 0.12661,
    "h": 105.2
  },
  "luminance": 0.26313
}

Semantic roles & 50–950 ramp

primary
#978F1D
secondary
#4F57C0
accent
#49EB3D
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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