#978D1C#978D1C

#978D1C is a light, vivid yellow. Relative luminance 0.257; OKLCH L 63.3% C 0.125 H 104.0°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#978D1C
RGBrgb(151, 141, 28)
HSLhsl(55, 69%, 35%)
HSVhsv(55, 81%, 59%)
CMYKcmyk(0%, 6.6%, 81.5%, 40.8%)
CIE-LABlab(57.76, -8.66, 56.15)
CIE-LCHlch(57.76, 56.82, 98.76°)
OKLaboklab(63.3% -0.0304 0.1216)
OKLCHoklch(63.3% 0.125 104)
XYZxyz(22.4980, 25.7139, 4.8766)
Luminance0.2571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978D1C #1C2697
analogous
#97501C #978D1C #63971C
triadic
#978D1C #1C978D #8D1C97
tetradic
#978D1C #1C9750 #1C2697 #971C63
square
#978D1C #1C9750 #1C2697 #971C63
split-complementary
#978D1C #1C6397 #501C97
monochromatic
#302D09 #635D12 #978D1C #CBBD26 #DED34F

Accessibility & contrast

On white

3.42
#978D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#978D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978D1C
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978D1C#FFFFFF#000000##000000
##978D1C1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#9E8D26
Tritanopia (blue-blind)
#A38378
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #978d1c;
/* rgb */ color: rgb(151, 141, 28);
/* oklch */ color: oklch(63.3% 0.125 104.0);
Tailwind
colors: {
  custom: {
    50: '#b9ae64',
    500: '#978d1c',
    950: '#000000',
  },
}
SCSS
$custom: #978d1c;
$custom-light: #b9ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#978d1c",
  "rgb": {
    "r": 151,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 55.122,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63295,
    "c": 0.12528,
    "h": 104
  },
  "luminance": 0.25713
}

Semantic roles & 50–950 ramp

primary
#978D1C
secondary
#4E57C1
accent
#4AEC3C
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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