Skip to content

#978708

a dark, electric yellow · warm · closest name: Olive

RGB
151, 135, 8
HSL
53°, 90%, 31%
CMYK
0, 11, 95, 41
Luminance
0.2392

At a glance

Every number on this page in one read: what #978708 is made of, how bright it looks, and which way it leans.

Hex
#978708
Hue
53°
yellow
Saturation
90%
electric
Lightness
31%
dark
Brightness
59%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2392
WCAG relative
Temperature
Warm
19/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
5.78:1
Closest name
Olive
ΔE2000 6
Where it sits
Hue53° of 360°
Saturation90%
Lightness31%
Temperature
Warm ← → Cool19% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#978708
RGBrgb(151, 135, 8)
HSLhsl(53, 90%, 31%)
CMYKcmyk(0%, 11%, 95%, 41%)
LABlab(56.0 -5.9 59.3)
LCHlch(56.0 59.6 95.7)
OKLCHoklch(0.619 0.127 100.8)
Decimal9930504
Display P3color(display-p3 0.592 0.529 0.031)

Copy-ready code

/* CSS */
color: #978708;
background-color: #978708;
/* Tailwind (arbitrary) */
class="text-[#978708] bg-[#978708]"
/* SCSS */
$brand: #978708;
/* SwiftUI */
Color(red: 0.592, green: 0.529, blue: 0.031)
/* Android */
Color.parseColor("#978708")
/* Flutter */
Color(0xFF978708)
/* Python / OpenCV (BGR) */
(8, 135, 151)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #978708 · 5.78:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.63:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.78:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #978708 as text scores 3.63:1 on white and 5.78:1 on black.

Accessibility — WCAG contrast

Aa
#978708 on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#978708 on black: 5.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #958300
deuteranopia · #9A8918
tritanopia · #A47C72

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #978708 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDFCF2
#FBF8E5
#F8F2C3
#F9EE94
#F7E65F
#F4DD2A
#E8D00C
#C2AD0A
#978708
#70650B
#463F07
Base = 800Lightest = 50 · #FDFCF2Darkest = 950 · #463F07
:root {
  --brand-50: #FDFCF2;
  --brand-100: #FBF8E5;
  --brand-200: #F8F2C3;
  --brand-300: #F9EE94;
  --brand-400: #F7E65F;
  --brand-500: #F4DD2A;
  --brand-600: #E8D00C;
  --brand-700: #C2AD0A;
  --brand-800: #978708;
  --brand-900: #70650B;
  --brand-950: #463F07;
  --brand: #978708;
  --brand-ink: #000000;
}

Colors that work with #978708

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAFAF4
Tinted page background
Border#EDE8C0
Hairlines and dividers
Muted text#9B924B
Captions on the surface
Accent#053B9A
Second voice, not a rival
Dark variant#796C06
Hover, pressed, headers
Light variant#FEFBE7
Selected rows, tints
Dark surface#242314
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #978708

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#081897
Analogous left#974008
Analogous right#609708
Split-complement 1#086097
Split-complement 2#400897
Triadic 1#089787
Triadic 2#870897
Tetradic#089740

RGB percentages

Red59.2%
Green52.9%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta10.6%
Yellow94.7%
Key (black)40.8%

Color previews

#978708 text on a black background

contrast 5.78:1

Card sample

#978708 text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #978708;
Background color
Panel with #978708 background
background-color: #978708;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #978708;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(151, 135, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 135, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #978708;
background: linear-gradient(135deg, #978708, #489708);

Monochromatic scale

Palettes built from #978708

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#978708 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#978708, answered

What color is #978708?

#978708 is a dark electric yellow, closest to Olive (ΔE2000 6). It sits at 53° on the hue wheel with 90% saturation and 31% lightness, which reads as warm.

What is the RGB value of #978708?

rgb(151, 135, 8) — 151 red, 135 green and 8 blue out of 255, or 59.2% / 52.9% / 3.1% by channel.

Is #978708 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2392 and perceived brightness is 52%, so black text on it reaches 5.78:1.

Should I use black or white text on #978708?

Black. It scores 5.78:1 against #978708, versus 3.63:1 for white — AA at any size.

What is the complementary color of #978708?

#081897 sits directly opposite on the wheel. Softer options are the split-complements #086097 and #400897, which give the same contrast with far less vibration.

What colors go well with #978708?

For interface work: #FAFAF4 as the surface, #EDE8C0 for borders, #9B924B for secondary text, #053B9A as an accent and #796C06 for hover and pressed states. For a palette, the analogous pair #974008 and #609708 stays calm, while #081897 is the loudest partner.

What is #978708 in CMYK for printing?

cmyk(0%, 11%, 95%, 41%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #978708 warm or cool?

Warm — it scores 19 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #975E08; nudged cooler, #739906.

Work with #978708 in the Color Lab