Skip to content

#978f13

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

RGB
151, 143, 19
HSL
56°, 78%, 33%
CMYK
0, 5, 87, 41
Luminance
0.2627

At a glance

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

Hex
#978f13
Hue
56°
yellow
Saturation
78%
electric
Lightness
33%
dark
Brightness
59%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2627
WCAG relative
Temperature
Warm
22/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
6.25:1
Closest name
Olive
ΔE2000 6.4
Where it sits
Hue56° of 360°
Saturation78%
Lightness33%
Temperature
Warm ← → Cool22% 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#978f13
RGBrgb(151, 143, 19)
HSLhsl(56, 78%, 33%)
CMYKcmyk(0%, 5%, 87%, 41%)
LABlab(58.3 -10.0 59.0)
LCHlch(58.3 59.8 99.6)
OKLCHoklch(0.637 0.131 105.4)
Decimal9932563
Display P3color(display-p3 0.592 0.561 0.075)

Copy-ready code

/* CSS */
color: #978f13;
background-color: #978f13;
/* Tailwind (arbitrary) */
class="text-[#978f13] bg-[#978f13]"
/* SCSS */
$brand: #978f13;
/* SwiftUI */
Color(red: 0.592, green: 0.561, blue: 0.075)
/* Android */
Color.parseColor("#978f13")
/* Flutter */
Color(0xFF978F13)
/* Python / OpenCV (BGR) */
(19, 143, 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 #978f13 · 6.25:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.36:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.25:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #978f13 as text scores 3.36:1 on white and 6.25:1 on black.

Accessibility — WCAG contrast

Aa
#978f13 on white: 3.36:1
AA ✗ fail · AA-large · AAA
Aa
#978f13 on black: 6.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9D8900
deuteranopia · #9F8E20
tritanopia · #A3847A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #978f13 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.

#FCFBF3
#F9F8E6
#F4F2C7
#F2ED9B
#ECE46A
#E6DB38
#D9CE1B
#B5AC17
#978f13
#696412
#423E0B
Base = 800Lightest = 50 · #FCFBF3Darkest = 950 · #423E0B
:root {
  --brand-50: #FCFBF3;
  --brand-100: #F9F8E6;
  --brand-200: #F4F2C7;
  --brand-300: #F2ED9B;
  --brand-400: #ECE46A;
  --brand-500: #E6DB38;
  --brand-600: #D9CE1B;
  --brand-700: #B5AC17;
  --brand-800: #978f13;
  --brand-900: #696412;
  --brand-950: #423E0B;
  --brand: #978f13;
  --brand-ink: #000000;
}

Colors that work with #978f13

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#EDEAC0
Hairlines and dividers
Muted text#9B964B
Captions on the surface
Accent#103B9A
Second voice, not a rival
Dark variant#716B0E
Hover, pressed, headers
Light variant#FCFBE8
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 #978f13

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#131B97
Analogous left#974D13
Analogous right#5D9713
Split-complement 1#135D97
Split-complement 2#4D1397
Triadic 1#13978F
Triadic 2#8F1397
Tetradic#13974D

RGB percentages

Red59.2%
Green56.1%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta5.3%
Yellow87.4%
Key (black)40.8%

Color previews

#978f13 text on a black background

contrast 6.25:1

Card sample

#978f13 text on a white background

contrast 3.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #978f13

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.

#978f13 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.

#978f13, answered

What color is #978f13?

#978f13 is a dark electric yellow, closest to Olive (ΔE2000 6.4). It sits at 56° on the hue wheel with 78% saturation and 33% lightness, which reads as warm.

What is the RGB value of #978f13?

rgb(151, 143, 19) — 151 red, 143 green and 19 blue out of 255, or 59.2% / 56.1% / 7.5% by channel.

Is #978f13 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2627 and perceived brightness is 54%, so black text on it reaches 6.25:1.

Should I use black or white text on #978f13?

Black. It scores 6.25:1 against #978f13, versus 3.36:1 for white — AA at any size.

What is the complementary color of #978f13?

#131B97 sits directly opposite on the wheel. Softer options are the split-complements #135D97 and #4D1397, which give the same contrast with far less vibration.

What colors go well with #978f13?

For interface work: #FAFAF4 as the surface, #EDEAC0 for borders, #9B964B for secondary text, #103B9A as an accent and #716B0E for hover and pressed states. For a palette, the analogous pair #974D13 and #5D9713 stays calm, while #131B97 is the loudest partner.

What is #978f13 in CMYK for printing?

cmyk(0%, 5%, 87%, 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 #978f13 warm or cool?

Warm — it scores 22 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #976413; nudged cooler, #6F9911.

Work with #978f13 in the Color Lab