Skip to content

#9c0157

a dark, electric magenta / pink · warm · closest name: Medium Violet Red

RGB
156, 1, 87
HSL
327°, 99%, 31%
CMYK
0, 99, 44, 39
Luminance
0.0778

At a glance

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

Hex
#9c0157
Hue
327°
magenta / pink
Saturation
99%
electric
Lightness
31%
dark
Brightness
61%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0778
WCAG relative
Temperature
Warm
35/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
8.22:1
Closest name
Medium Violet Red
ΔE2000 11
Where it sits
Hue327° of 360°
Saturation99%
Lightness31%
Temperature
Warm ← → Cool35% 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#9c0157
RGBrgb(156, 1, 87)
HSLhsl(327, 99%, 31%)
CMYKcmyk(0%, 99%, 44%, 39%)
LABlab(33.5 59.4 -4.0)
LCHlch(33.5 59.5 356.2)
OKLCHoklch(0.451 0.184 357.0)
Decimal10223959
Display P3color(display-p3 0.612 0.004 0.341)

Copy-ready code

/* CSS */
color: #9c0157;
background-color: #9c0157;
/* Tailwind (arbitrary) */
class="text-[#9c0157] bg-[#9c0157]"
/* SCSS */
$brand: #9c0157;
/* SwiftUI */
Color(red: 0.612, green: 0.004, blue: 0.341)
/* Android */
Color.parseColor("#9c0157")
/* Flutter */
Color(0xFF9C0157)
/* Python / OpenCV (BGR) */
(87, 1, 156)

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

Accessibility — WCAG contrast

Aa
#9c0157 on white: 8.22:1
AA ✓ pass · AA-large · AAA
Aa
#9c0157 on black: 2.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #323E59
deuteranopia · #595854
tritanopia · #AA0031

Color scale — 50 to 950

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

#FEF1F8
#FCE3F1
#FBC0E1
#FE90CD
#FE58B4
#FE209B
#F30288
#CB0171
#9c0157
#750643
#49042A
Base = 800Lightest = 50 · #FEF1F8Darkest = 950 · #49042A
:root {
  --brand-50: #FEF1F8;
  --brand-100: #FCE3F1;
  --brand-200: #FBC0E1;
  --brand-300: #FE90CD;
  --brand-400: #FE58B4;
  --brand-500: #FE209B;
  --brand-600: #F30288;
  --brand-700: #CB0171;
  --brand-800: #9c0157;
  --brand-900: #750643;
  --brand-950: #49042A;
  --brand: #9c0157;
  --brand-ink: #ffffff;
}

Colors that work with #9c0157

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#EDC0D9
Hairlines and dividers
Muted text#9B4B77
Captions on the surface
Accent#009D1F
Second voice, not a rival
Dark variant#7F0147
Hover, pressed, headers
Light variant#FFE6F4
Selected rows, tints
Dark surface#24141D
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 #9c0157

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#019C46
Analogous left#94019C
Analogous right#9C010A
Split-complement 1#0A9C01
Split-complement 2#019C94
Triadic 1#579C01
Triadic 2#01579C
Tetradic#9C9401

RGB percentages

Red61.2%
Green0.4%
Blue34.1%

CMYK percentages

Cyan0.0%
Magenta99.4%
Yellow44.2%
Key (black)38.8%

Color previews

#9c0157 text on a black background

contrast 2.56:1

Card sample

#9c0157 text on a white background

contrast 8.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9c0157;
Background color
Panel with #9c0157 background
background-color: #9c0157;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(156, 1, 87, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(156, 1, 87, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9c0157;
background: linear-gradient(135deg, #9c0157, #9C1201);

Monochromatic scale

Palettes built from #9c0157

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.

#9c0157 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.

#9c0157, answered

What color is #9c0157?

#9c0157 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 11). It sits at 327° on the hue wheel with 99% saturation and 31% lightness, which reads as warm.

What is the RGB value of #9c0157?

rgb(156, 1, 87) — 156 red, 1 green and 87 blue out of 255, or 61.2% / 0.4% / 34.1% by channel.

Is #9c0157 a light or a dark color?

It is a dark color. Relative luminance is 0.0778 and perceived brightness is 35%, so white text on it reaches 8.22:1.

Should I use black or white text on #9c0157?

White. It scores 8.22:1 against #9c0157, versus 2.56:1 for black — AAA at any size.

What is the complementary color of #9c0157?

#019C46 sits directly opposite on the wheel. Softer options are the split-complements #0A9C01 and #019C94, which give the same contrast with far less vibration.

What colors go well with #9c0157?

For interface work: #FAF4F8 as the surface, #EDC0D9 for borders, #9B4B77 for secondary text, #009D1F as an accent and #7F0147 for hover and pressed states. For a palette, the analogous pair #94019C and #9C010A stays calm, while #019C46 is the loudest partner.

What is #9c0157 in CMYK for printing?

cmyk(0%, 99%, 44%, 39%). 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 #9c0157 warm or cool?

Warm — it scores 35 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9C011E; nudged cooler, #9D0091.

Work with #9c0157 in the Color Lab