#978F1E#978F1E

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

Color values

HEX#978F1E
RGBrgb(151, 143, 30)
HSLhsl(56, 67%, 35%)
HSVhsv(56, 80%, 59%)
CMYKcmyk(0%, 5.3%, 80.1%, 40.8%)
CIE-LABlab(58.34, -9.66, 56.05)
CIE-LCHlch(58.34, 56.87, 99.78°)
OKLaboklab(63.76% -0.033 0.1217)
OKLCHoklch(63.76% 0.126 105.2)
XYZxyz(22.8203, 26.3189, 5.1060)
Luminance0.2632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978F1E #1E2697
analogous
#97521E #978F1E #62971E
triadic
#978F1E #1E978F #8F1E97
tetradic
#978F1E #1E9752 #1E2697 #971E62
square
#978F1E #1E9752 #1E2697 #971E62
split-complementary
#978F1E #1E6297 #521E97
monochromatic
#312E0A #645F14 #978F1E #CABF28 #DDD453

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##978F1E#FFFFFF#000000##000000
##978F1E1.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: #978f1e;
/* rgb */ color: rgb(151, 143, 30);
/* oklch */ color: oklch(63.8% 0.126 105.2);
Tailwind
colors: {
  custom: {
    50: '#b9af65',
    500: '#978f1e',
    950: '#000000',
  },
}
SCSS
$custom: #978f1e;
$custom-light: #b9af65;
$custom-dark: #000000;
JSON
{
  "hex": "#978f1e",
  "rgb": {
    "r": 151,
    "g": 143,
    "b": 30
  },
  "hsl": {
    "h": 56.033,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.63755,
    "c": 0.12611,
    "h": 105.2
  },
  "luminance": 0.26318
}

Semantic roles & 50–950 ramp

primary
#978F1E
secondary
#5158C0
accent
#49EA3E
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #978F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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