Skip to content

#c01b9a

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

RGB
192, 27, 154
HSL
314°, 75%, 43%
CMYK
0, 86, 20, 25
Luminance
0.1432

At a glance

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

Hex
#c01b9a
Hue
314°
magenta / pink
Saturation
75%
electric
Lightness
43%
dark
Brightness
75%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1432
WCAG relative
Temperature
Neutral
42/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.43:1
Closest name
Medium Violet Red
ΔE2000 4.8
Where it sits
Hue314° of 360°
Saturation75%
Lightness43%
Temperature
Warm ← → Cool42% 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#c01b9a
RGBrgb(192, 27, 154)
HSLhsl(314, 75%, 43%)
CMYKcmyk(0%, 86%, 20%, 25%)
LABlab(44.7 70.9 -28.1)
LCHlch(44.7 76.3 338.4)
OKLCHoklch(0.553 0.226 340.3)
Decimal12589978
Display P3color(display-p3 0.753 0.106 0.604)

Copy-ready code

/* CSS */
color: #c01b9a;
background-color: #c01b9a;
/* Tailwind (arbitrary) */
class="text-[#c01b9a] bg-[#c01b9a]"
/* SCSS */
$brand: #c01b9a;
/* SwiftUI */
Color(red: 0.753, green: 0.106, blue: 0.604)
/* Android */
Color.parseColor("#c01b9a")
/* Flutter */
Color(0xFFC01B9A)
/* Python / OpenCV (BGR) */
(154, 27, 192)

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 #c01b9a · 5.43:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.43:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.86:1
AA fail · AA large pass · AAA fail
Reading the other direction: #c01b9a as text scores 5.43:1 on white and 3.86:1 on black.

Accessibility — WCAG contrast

Aa
#c01b9a on white: 5.43:1
AA ✓ pass · AA-large · AAA
Aa
#c01b9a on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2C599D
deuteranopia · #657397
tritanopia · #CC235D

Color scale — 50 to 950

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

#FCF3FA
#F9E7F5
#F4C8EA
#F19DDE
#EA6BCD
#E33ABC
#D71EAC
#c01b9a
#8F1473
#681354
#410C35
Base = 700Lightest = 50 · #FCF3FADarkest = 950 · #410C35
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F9E7F5;
  --brand-200: #F4C8EA;
  --brand-300: #F19DDE;
  --brand-400: #EA6BCD;
  --brand-500: #E33ABC;
  --brand-600: #D71EAC;
  --brand-700: #c01b9a;
  --brand-800: #8F1473;
  --brand-900: #681354;
  --brand-950: #410C35;
  --brand: #c01b9a;
  --brand-ink: #ffffff;
}

Colors that work with #c01b9a

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#FAF4F9
Tinted page background
Border#EDC0E2
Hairlines and dividers
Muted text#9B4B88
Captions on the surface
Accent#18B715
Second voice, not a rival
Dark variant#70105A
Hover, pressed, headers
Light variant#FCE9F7
Selected rows, tints
Dark surface#241421
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 #c01b9a

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
  • 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#1BC041
Analogous left#931BC0
Analogous right#C01B48
Split-complement 1#48C01B
Split-complement 2#1BC093
Triadic 1#9AC01B
Triadic 2#1B9AC0
Tetradic#C0931B

RGB percentages

Red75.3%
Green10.6%
Blue60.4%

CMYK percentages

Cyan0.0%
Magenta85.9%
Yellow19.8%
Key (black)24.7%

Color previews

#c01b9a text on a black background

contrast 3.86:1

Card sample

#c01b9a text on a white background

contrast 5.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 27, 154, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 27, 154, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c01b9a;
background: linear-gradient(135deg, #c01b9a, #C01B2C);

Monochromatic scale

Palettes built from #c01b9a

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.

#c01b9a 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.

#c01b9a, answered

What color is #c01b9a?

#c01b9a is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 4.8). It sits at 314° on the hue wheel with 75% saturation and 43% lightness, which reads as neutral.

What is the RGB value of #c01b9a?

rgb(192, 27, 154) — 192 red, 27 green and 154 blue out of 255, or 75.3% / 10.6% / 60.4% by channel.

Is #c01b9a a light or a dark color?

It is a dark color. Relative luminance is 0.1432 and perceived brightness is 47%, so white text on it reaches 5.43:1.

Should I use black or white text on #c01b9a?

White. It scores 5.43:1 against #c01b9a, versus 3.86:1 for black — AA at any size.

What is the complementary color of #c01b9a?

#1BC041 sits directly opposite on the wheel. Softer options are the split-complements #48C01B and #1BC093, which give the same contrast with far less vibration.

What colors go well with #c01b9a?

For interface work: #FAF4F9 as the surface, #EDC0E2 for borders, #9B4B88 for secondary text, #18B715 as an accent and #70105A for hover and pressed states. For a palette, the analogous pair #931BC0 and #C01B48 stays calm, while #1BC041 is the loudest partner.

What is #c01b9a in CMYK for printing?

cmyk(0%, 86%, 20%, 25%). 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 #c01b9a warm or cool?

Neutral — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C01B5D; nudged cooler, #AB19C2.

Work with #c01b9a in the Color Lab