#978F1C#978F1C

#978F1C 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#978F1C
RGBrgb(151, 143, 28)
HSLhsl(56, 69%, 35%)
HSVhsv(56, 81%, 59%)
CMYKcmyk(0%, 5.3%, 81.5%, 40.8%)
CIE-LABlab(58.33, -9.73, 56.65)
CIE-LCHlch(58.33, 57.48, 99.75°)
OKLaboklab(63.74% -0.0334 0.1226)
OKLCHoklch(63.74% 0.127 105.2)
XYZxyz(22.7956, 26.3090, 4.9758)
Luminance0.2631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F1C #1C2497
analogous
#97521C #978F1C #61971C
triadic
#978F1C #1C978F #8F1C97
tetradic
#978F1C #1C9752 #1C2497 #971C61
square
#978F1C #1C9752 #1C2497 #971C61
split-complementary
#978F1C #1C6197 #521C97
monochromatic
#302D09 #635E12 #978F1C #CBC026 #DED54F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #978f1c;
/* rgb */ color: rgb(151, 143, 28);
/* oklch */ color: oklch(63.7% 0.127 105.2);
Tailwind
colors: {
  custom: {
    50: '#b9af64',
    500: '#978f1c',
    950: '#000000',
  },
}
SCSS
$custom: #978f1c;
$custom-light: #b9af64;
$custom-dark: #000000;
JSON
{
  "hex": "#978f1c",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 56.098,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63744,
    "c": 0.12708,
    "h": 105.2
  },
  "luminance": 0.26308
}

Semantic roles & 50–950 ramp

primary
#978F1C
secondary
#4E55C1
accent
#48EC3C
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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