#978C1C#978C1C

#978C1C 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#978C1C
RGBrgb(151, 140, 28)
HSLhsl(55, 69%, 35%)
HSVhsv(55, 81%, 59%)
CMYKcmyk(0%, 7.3%, 81.5%, 40.8%)
CIE-LABlab(57.48, -8.12, 55.91)
CIE-LCHlch(57.48, 56.49, 98.26°)
OKLaboklab(63.07% -0.0288 0.121)
OKLCHoklch(63.07% 0.124 103.4)
XYZxyz(22.3512, 25.4203, 4.8277)
Luminance0.2542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978C1C #1C2797
analogous
#974E1C #978C1C #65971C
triadic
#978C1C #1C978C #8C1C97
tetradic
#978C1C #1C974E #1C2797 #971C65
square
#978C1C #1C974E #1C2797 #971C65
split-complementary
#978C1C #1C6597 #4E1C97
monochromatic
#302C09 #635C12 #978C1C #CBBC26 #DED24F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978C1C#FFFFFF#000000##000000
##978C1C1.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)
#9D8C25
Tritanopia (blue-blind)
#A38278
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #978c1c;
/* rgb */ color: rgb(151, 140, 28);
/* oklch */ color: oklch(63.1% 0.124 103.4);
Tailwind
colors: {
  custom: {
    50: '#b9ad64',
    500: '#978c1c',
    950: '#000000',
  },
}
SCSS
$custom: #978c1c;
$custom-light: #b9ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#978c1c",
  "rgb": {
    "r": 151,
    "g": 140,
    "b": 28
  },
  "hsl": {
    "h": 54.634,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.6307,
    "c": 0.12441,
    "h": 103.4
  },
  "luminance": 0.25419
}

Semantic roles & 50–950 ramp

primary
#978C1C
secondary
#4E58C1
accent
#4CEC3C
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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