Skip to content

#78298f

a dark, vivid violet · neutral · closest name: Dark Magenta

RGB
120, 41, 143
HSL
287°, 55%, 36%
CMYK
16, 71, 0, 44
Luminance
0.0756

At a glance

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

Hex
#78298f
Hue
287°
violet
Saturation
55%
vivid
Lightness
36%
dark
Brightness
56%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0756
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
8.36:1
Closest name
Dark Magenta
ΔE2000 4.8
Where it sits
Hue287° of 360°
Saturation55%
Lightness36%
Temperature
Warm ← → Cool58% cool

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

Every format

HEX#78298f
RGBrgb(120, 41, 143)
HSLhsl(287, 55%, 36%)
CMYKcmyk(16%, 71%, 0%, 44%)
LABlab(33.1 49.4 -40.6)
LCHlch(33.1 64.0 320.6)
OKLCHoklch(0.445 0.169 317.6)
Decimal7874959
Display P3color(display-p3 0.471 0.161 0.561)

Copy-ready code

/* CSS */
color: #78298f;
background-color: #78298f;
/* Tailwind (arbitrary) */
class="text-[#78298f] bg-[#78298f]"
/* SCSS */
$brand: #78298f;
/* SwiftUI */
Color(red: 0.471, green: 0.161, blue: 0.561)
/* Android */
Color.parseColor("#78298f")
/* Flutter */
Color(0xFF78298F)
/* Python / OpenCV (BGR) */
(143, 41, 120)

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#ffffff on #78298f · 8.36:1
Use #ffffffAAA at every size.
Aa
White text · 8.36:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.51:1
AA fail · AA large fail · AAA fail
Reading the other direction: #78298f as text scores 8.36:1 on white and 2.51:1 on black.

Accessibility — WCAG contrast

Aa
#78298f on white: 8.36:1
AA ✓ pass · AA-large · AAA
Aa
#78298f on black: 2.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004992
deuteranopia · #2C508D
tritanopia · #773D59

Color scale — 50 to 950

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

#F9F4FB
#F3E9F6
#E7CEEE
#D8A8E6
#C47CD9
#B151CD
#A037BE
#78298f
#6A247F
#4E1E5C
#31133A
Base = 700Lightest = 50 · #F9F4FBDarkest = 950 · #31133A
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F3E9F6;
  --brand-200: #E7CEEE;
  --brand-300: #D8A8E6;
  --brand-400: #C47CD9;
  --brand-500: #B151CD;
  --brand-600: #A037BE;
  --brand-700: #78298f;
  --brand-800: #6A247F;
  --brand-900: #4E1E5C;
  --brand-950: #31133A;
  --brand: #78298f;
  --brand-ink: #ffffff;
}

Colors that work with #78298f

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

Text on it#ffffff
White wins here
Surface#F9F4FA
Tinted page background
Border#E3C0ED
Hairlines and dividers
Muted text#894B9B
Captions on the surface
Accent#599325
Second voice, not a rival
Dark variant#531C63
Hover, pressed, headers
Light variant#F6EBF9
Selected rows, tints
Dark surface#211424
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 #78298f

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

Works well for
  • Body text and links on white
  • 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
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#408F29
Analogous left#45298F
Analogous right#8F2973
Split-complement 1#738F29
Split-complement 2#298F45
Triadic 1#8F7829
Triadic 2#298F78
Tetradic#8F4529

RGB percentages

Red47.1%
Green16.1%
Blue56.1%

CMYK percentages

Cyan16.1%
Magenta71.3%
Yellow0.0%
Key (black)43.9%

Color previews

#78298f text on a black background

contrast 2.51:1

Card sample

#78298f text on a white background

contrast 8.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(120, 41, 143, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 41, 143, 0.45);
Border & gradient
Gradient panel
border: 3px solid #78298f;
background: linear-gradient(135deg, #78298f, #8F2962);

Monochromatic scale

Palettes built from #78298f

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.

#78298f in the real world

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

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#78298f, answered

What color is #78298f?

#78298f is a dark vivid violet, closest to Dark Magenta (ΔE2000 4.8). It sits at 287° on the hue wheel with 55% saturation and 36% lightness, which reads as neutral.

What is the RGB value of #78298f?

rgb(120, 41, 143) — 120 red, 41 green and 143 blue out of 255, or 47.1% / 16.1% / 56.1% by channel.

Is #78298f a light or a dark color?

It is a dark color. Relative luminance is 0.0756 and perceived brightness is 34%, so white text on it reaches 8.36:1.

Should I use black or white text on #78298f?

White. It scores 8.36:1 against #78298f, versus 2.51:1 for black — AAA at any size.

What is the complementary color of #78298f?

#408F29 sits directly opposite on the wheel. Softer options are the split-complements #738F29 and #298F45, which give the same contrast with far less vibration.

What colors go well with #78298f?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #894B9B for secondary text, #599325 as an accent and #531C63 for hover and pressed states. For a palette, the analogous pair #45298F and #8F2973 stays calm, while #408F29 is the loudest partner.

What is #78298f in CMYK for printing?

cmyk(16%, 71%, 0%, 44%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #78298f warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8F2981; nudged cooler, #522791.

Work with #78298f in the Color Lab