Skip to content

#8c0156

a dark, electric magenta / pink · warm · closest name: Purple

RGB
140, 1, 86
HSL
323°, 99%, 28%
CMYK
0, 99, 39, 45
Luminance
0.0627

At a glance

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

Hex
#8c0156
Hue
323°
magenta / pink
Saturation
99%
electric
Lightness
28%
dark
Brightness
55%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0627
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
9.32:1
Closest name
Purple
ΔE2000 11.1
Where it sits
Hue323° of 360°
Saturation99%
Lightness28%
Temperature
Warm ← → Cool37% 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#8c0156
RGBrgb(140, 1, 86)
HSLhsl(323, 99%, 28%)
CMYKcmyk(0%, 99%, 39%, 45%)
LABlab(30.1 55.7 -8.8)
LCHlch(30.1 56.4 351.0)
OKLCHoklch(0.420 0.173 352.5)
Decimal9175382
Display P3color(display-p3 0.549 0.004 0.337)

Copy-ready code

/* CSS */
color: #8c0156;
background-color: #8c0156;
/* Tailwind (arbitrary) */
class="text-[#8c0156] bg-[#8c0156]"
/* SCSS */
$brand: #8c0156;
/* SwiftUI */
Color(red: 0.549, green: 0.004, blue: 0.337)
/* Android */
Color.parseColor("#8c0156")
/* Flutter */
Color(0xFF8C0156)
/* Python / OpenCV (BGR) */
(86, 1, 140)

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

Accessibility — WCAG contrast

Aa
#8c0156 on white: 9.32:1
AA ✓ pass · AA-large · AAA
Aa
#8c0156 on black: 2.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #283858
deuteranopia · #4E4F53
tritanopia · #980030

Color scale — 50 to 950

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

#FEF1F9
#FCE3F2
#FBC0E4
#FE90D3
#FE58BD
#FD20A8
#F30295
#CB017C
#A20164
#8c0156
#49042E
Base = 900Lightest = 50 · #FEF1F9Darkest = 950 · #49042E
:root {
  --brand-50: #FEF1F9;
  --brand-100: #FCE3F2;
  --brand-200: #FBC0E4;
  --brand-300: #FE90D3;
  --brand-400: #FE58BD;
  --brand-500: #FD20A8;
  --brand-600: #F30295;
  --brand-700: #CB017C;
  --brand-800: #A20164;
  --brand-900: #8c0156;
  --brand-950: #49042E;
  --brand: #8c0156;
  --brand-ink: #ffffff;
}

Colors that work with #8c0156

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#FAF4F8
Tinted page background
Border#EDC0DB
Hairlines and dividers
Muted text#9B4B7C
Captions on the surface
Accent#008D13
Second voice, not a rival
Dark variant#7F014E
Hover, pressed, headers
Light variant#FFE6F5
Selected rows, tints
Dark surface#24141E
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 #8c0156

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#018C37
Analogous left#7C018C
Analogous right#8C0110
Split-complement 1#108C01
Split-complement 2#018C7C
Triadic 1#568C01
Triadic 2#01568C
Tetradic#8C7C01

RGB percentages

Red54.9%
Green0.4%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta99.3%
Yellow38.6%
Key (black)45.1%

Color previews

#8c0156 text on a black background

contrast 2.25:1

Card sample

#8c0156 text on a white background

contrast 9.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c0156

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.

#8c0156 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

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

#8c0156, answered

What color is #8c0156?

#8c0156 is a dark electric magenta / pink, closest to Purple (ΔE2000 11.1). It sits at 323° on the hue wheel with 99% saturation and 28% lightness, which reads as warm.

What is the RGB value of #8c0156?

rgb(140, 1, 86) — 140 red, 1 green and 86 blue out of 255, or 54.9% / 0.4% / 33.7% by channel.

Is #8c0156 a light or a dark color?

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

Should I use black or white text on #8c0156?

White. It scores 9.32:1 against #8c0156, versus 2.25:1 for black — AAA at any size.

What is the complementary color of #8c0156?

#018C37 sits directly opposite on the wheel. Softer options are the split-complements #108C01 and #018C7C, which give the same contrast with far less vibration.

What colors go well with #8c0156?

For interface work: #FAF4F8 as the surface, #EDC0DB for borders, #9B4B7C for secondary text, #008D13 as an accent and #7F014E for hover and pressed states. For a palette, the analogous pair #7C018C and #8C0110 stays calm, while #018C37 is the loudest partner.

What is #8c0156 in CMYK for printing?

cmyk(0%, 99%, 39%, 45%). 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 #8c0156 warm or cool?

Warm — it scores 37 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8C0123; nudged cooler, #8D008A.

Work with #8c0156 in the Color Lab