#8c0199
a dark, electric magenta / pink · neutral · closest name: Dark Magenta
At a glance
Every number on this page in one read: what #8c0199 is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #8c0199 |
| RGB | rgb(140, 1, 153) |
| HSL | hsl(295, 99%, 30%) |
| CMYK | cmyk(9%, 99%, 0%, 40%) |
| LAB | lab(33.8 64.8 -45.5) |
| LCH | lch(33.8 79.2 325.0) |
| OKLCH | oklch(0.458 0.215 323.7) |
| Decimal | 9175449 |
| Display P3 | color(display-p3 0.549 0.004 0.600) |
Copy-ready code
/* CSS */
color: #8c0199;
background-color: #8c0199;
/* Tailwind (arbitrary) */
class="text-[#8c0199] bg-[#8c0199]"
/* SCSS */
$brand: #8c0199;
/* SwiftUI */
Color(red: 0.549, green: 0.004, blue: 0.600)
/* Android */
Color.parseColor("#8c0199")
/* Flutter */
Color(0xFF8C0199)
/* Python / OpenCV (BGR) */
(153, 1, 140)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #8c0199 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.
:root {
--brand-50: #FCF1FE;
--brand-100: #FAE3FC;
--brand-200: #F6C0FB;
--brand-300: #F590FE;
--brand-400: #F058FE;
--brand-500: #EB20FE;
--brand-600: #DF02F3;
--brand-700: #BA01CB;
--brand-800: #8c0199;
--brand-900: #6B0675;
--brand-950: #430449;
--brand: #8c0199;
--brand-ink: #ffffff;
}Colors that work with #8c0199
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #8c0199
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #0E9901 | Directly opposite — maximum tension | |
| Analogous left | #400199 | Neighbour, quieter | |
| Analogous right | #99015A | Neighbour, quieter | |
| Split-complement 1 | #5A9901 | Contrast without the clash | |
| Split-complement 2 | #019940 | Contrast without the clash | |
| Triadic 1 | #998C01 | Even thirds — balanced and loud | |
| Triadic 2 | #01998C | Even thirds — balanced and loud | |
| Tetradic | #994001 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#8c0199 text on a black background
contrast 2.58:1
#8c0199 text on a white background
contrast 8.14:1
CSS3 live lab
The quick brown fox
color: #8c0199;
background-color: #8c0199;
Glowing headline
text-shadow: 2px 2px 8px #8c0199;
Soft neon halo
text-shadow: 0 0 14px rgba(140, 1, 153, 0.45);
box-shadow: 0 12px 32px -8px rgba(140, 1, 153, 0.45);
border: 3px solid #8c0199; background: linear-gradient(135deg, #8c0199, #990141);
Monochromatic scale
Palettes built from #8c0199
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.
Closest color with a full write-up: Purple (#800080) — ΔE2000 4.3 away, with its history, psychology and brand usage.
#8c0199 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#8c0199, answered
What color is #8c0199?
#8c0199 is a dark electric magenta / pink, closest to Dark Magenta (ΔE2000 2.4). It sits at 295° on the hue wheel with 99% saturation and 30% lightness, which reads as neutral.
What is the RGB value of #8c0199?
rgb(140, 1, 153) — 140 red, 1 green and 153 blue out of 255, or 54.9% / 0.4% / 60% by channel.
Is #8c0199 a light or a dark color?
It is a dark color. Relative luminance is 0.0790 and perceived brightness is 36%, so white text on it reaches 8.14:1.
Should I use black or white text on #8c0199?
White. It scores 8.14:1 against #8c0199, versus 2.58:1 for black — AAA at any size.
What is the complementary color of #8c0199?
#0E9901 sits directly opposite on the wheel. Softer options are the split-complements #5A9901 and #019940, which give the same contrast with far less vibration.
What colors go well with #8c0199?
For interface work: #FAF4FA as the surface, #E9C0ED for borders, #944B9B for secondary text, #349A00 as an accent and #74017F for hover and pressed states. For a palette, the analogous pair #400199 and #99015A stays calm, while #0E9901 is the loudest partner.
What is #8c0199 in CMYK for printing?
cmyk(9%, 99%, 0%, 40%). 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 #8c0199 warm or cool?
Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #99016E; nudged cooler, #54009A.