Skip to content

#78286f

a dark, vivid magenta / pink · neutral · closest name: Purple

RGB
120, 40, 111
HSL
307°, 50%, 31%
CMYK
0, 67, 8, 53
Luminance
0.0666

At a glance

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

Hex
#78286f
Hue
307°
magenta / pink
Saturation
50%
vivid
Lightness
31%
dark
Brightness
47%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0666
WCAG relative
Temperature
Neutral
46/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
9.01:1
Closest name
Purple
ΔE2000 5.6
Where it sits
Hue307° of 360°
Saturation50%
Lightness31%
Temperature
Warm ← → Cool46% 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#78286f
RGBrgb(120, 40, 111)
HSLhsl(307, 50%, 31%)
CMYKcmyk(0%, 67%, 8%, 53%)
LABlab(31.0 43.7 -23.9)
LCHlch(31.0 49.8 331.4)
OKLCHoklch(0.424 0.141 332.5)
Decimal7874671
Display P3color(display-p3 0.471 0.157 0.435)

Copy-ready code

/* CSS */
color: #78286f;
background-color: #78286f;
/* Tailwind (arbitrary) */
class="text-[#78286f] bg-[#78286f]"
/* SCSS */
$brand: #78286f;
/* SwiftUI */
Color(red: 0.471, green: 0.157, blue: 0.435)
/* Android */
Color.parseColor("#78286f")
/* Flutter */
Color(0xFF78286F)
/* Python / OpenCV (BGR) */
(111, 40, 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 #78286f · 9.01:1
Use #ffffffAAA at every size.
Aa
White text · 9.01:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.33:1
AA fail · AA large fail · AAA fail
Reading the other direction: #78286f as text scores 9.01:1 on white and 2.33:1 on black.

Accessibility — WCAG contrast

Aa
#78286f on white: 9.01:1
AA ✓ pass · AA-large · AAA
Aa
#78286f on black: 2.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #254271
deuteranopia · #404D6D
tritanopia · #7D2F47

Color scale — 50 to 950

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

#FAF4FA
#F6EAF4
#ECCFE9
#E3ABDD
#D581CB
#C757BA
#B83DAA
#99338D
#78286f
#592153
#381534
Base = 800Lightest = 50 · #FAF4FADarkest = 950 · #381534
:root {
  --brand-50: #FAF4FA;
  --brand-100: #F6EAF4;
  --brand-200: #ECCFE9;
  --brand-300: #E3ABDD;
  --brand-400: #D581CB;
  --brand-500: #C757BA;
  --brand-600: #B83DAA;
  --brand-700: #99338D;
  --brand-800: #78286f;
  --brand-900: #592153;
  --brand-950: #381534;
  --brand: #78286f;
  --brand-ink: #ffffff;
}

Colors that work with #78286f

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#FAF4FA
Tinted page background
Border#EBC2E6
Hairlines and dividers
Muted text#9B4B92
Captions on the surface
Accent#317B25
Second voice, not a rival
Dark variant#602058
Hover, pressed, headers
Light variant#F9ECF7
Selected rows, tints
Dark surface#241423
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 #78286f

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#287831
Analogous left#592878
Analogous right#782847
Split-complement 1#477828
Split-complement 2#287859
Triadic 1#6F7828
Triadic 2#286F78
Tetradic#785928

RGB percentages

Red47.1%
Green15.7%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta66.7%
Yellow7.5%
Key (black)52.9%

Color previews

#78286f text on a black background

contrast 2.33:1

Card sample

#78286f text on a white background

contrast 9.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(120, 40, 111, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 40, 111, 0.45);
Border & gradient
Gradient panel
border: 3px solid #78286f;
background: linear-gradient(135deg, #78286f, #78283A);

Monochromatic scale

Palettes built from #78286f

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.

#78286f in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#78286f, answered

What color is #78286f?

#78286f is a dark vivid magenta / pink, closest to Purple (ΔE2000 5.6). It sits at 307° on the hue wheel with 50% saturation and 31% lightness, which reads as neutral.

What is the RGB value of #78286f?

rgb(120, 40, 111) — 120 red, 40 green and 111 blue out of 255, or 47.1% / 15.7% / 43.5% by channel.

Is #78286f a light or a dark color?

It is a dark color. Relative luminance is 0.0666 and perceived brightness is 32%, so white text on it reaches 9.01:1.

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

White. It scores 9.01:1 against #78286f, versus 2.33:1 for black — AAA at any size.

What is the complementary color of #78286f?

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

What colors go well with #78286f?

For interface work: #FAF4FA as the surface, #EBC2E6 for borders, #9B4B92 for secondary text, #317B25 as an accent and #602058 for hover and pressed states. For a palette, the analogous pair #592878 and #782847 stays calm, while #287831 is the loudest partner.

What is #78286f in CMYK for printing?

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

Is #78286f warm or cool?

Neutral — it scores 46 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #782852; nudged cooler, #65267A.

Work with #78286f in the Color Lab