Skip to content

#c01b8e

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

RGB
192, 27, 142
HSL
318°, 75%, 43%
CMYK
0, 86, 26, 25
Luminance
0.1394

At a glance

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

Hex
#c01b8e
Hue
318°
magenta / pink
Saturation
75%
electric
Lightness
43%
dark
Brightness
75%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1394
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.54:1
Closest name
Medium Violet Red
ΔE2000 2.7
Where it sits
Hue318° of 360°
Saturation75%
Lightness43%
Temperature
Warm ← → Cool40% 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#c01b8e
RGBrgb(192, 27, 142)
HSLhsl(318, 75%, 43%)
CMYKcmyk(0%, 86%, 26%, 25%)
LABlab(44.2 69.5 -21.7)
LCHlch(44.2 72.8 342.6)
OKLCHoklch(0.548 0.219 344.6)
Decimal12589966
Display P3color(display-p3 0.753 0.106 0.557)

Copy-ready code

/* CSS */
color: #c01b8e;
background-color: #c01b8e;
/* Tailwind (arbitrary) */
class="text-[#c01b8e] bg-[#c01b8e]"
/* SCSS */
$brand: #c01b8e;
/* SwiftUI */
Color(red: 0.753, green: 0.106, blue: 0.557)
/* Android */
Color.parseColor("#c01b8e")
/* Flutter */
Color(0xFFC01B8E)
/* Python / OpenCV (BGR) */
(142, 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 #c01b8e · 5.54:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.54:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.79:1
AA fail · AA large pass · AAA fail
Reading the other direction: #c01b8e as text scores 5.54:1 on white and 3.79:1 on black.

Accessibility — WCAG contrast

Aa
#c01b8e on white: 5.54:1
AA ✓ pass · AA-large · AAA
Aa
#c01b8e on black: 3.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #365791
deuteranopia · #69728B
tritanopia · #CD1756

Color scale — 50 to 950

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

#FCF3F9
#F9E7F3
#F4C8E6
#F19DD8
#EA6BC4
#E33AB0
#D71E9F
#c01b8e
#8F146A
#68134E
#410C31
Base = 700Lightest = 50 · #FCF3F9Darkest = 950 · #410C31
:root {
  --brand-50: #FCF3F9;
  --brand-100: #F9E7F3;
  --brand-200: #F4C8E6;
  --brand-300: #F19DD8;
  --brand-400: #EA6BC4;
  --brand-500: #E33AB0;
  --brand-600: #D71E9F;
  --brand-700: #c01b8e;
  --brand-800: #8F146A;
  --brand-900: #68134E;
  --brand-950: #410C31;
  --brand: #c01b8e;
  --brand-ink: #ffffff;
}

Colors that work with #c01b8e

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#EDC0DF
Hairlines and dividers
Muted text#9B4B83
Captions on the surface
Accent#15B71E
Second voice, not a rival
Dark variant#701053
Hover, pressed, headers
Light variant#FCE9F6
Selected rows, tints
Dark surface#24141F
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 #c01b8e

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#1BC04D
Analogous left#9F1BC0
Analogous right#C01B3B
Split-complement 1#3BC01B
Split-complement 2#1BC09F
Triadic 1#8EC01B
Triadic 2#1B8EC0
Tetradic#C09F1B

RGB percentages

Red75.3%
Green10.6%
Blue55.7%

CMYK percentages

Cyan0.0%
Magenta85.9%
Yellow26.0%
Key (black)24.7%

Color previews

#c01b8e text on a black background

contrast 3.79:1

Card sample

#c01b8e text on a white background

contrast 5.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c01b8e

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.

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

#c01b8e, answered

What color is #c01b8e?

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

What is the RGB value of #c01b8e?

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

Is #c01b8e a light or a dark color?

It is a dark color. Relative luminance is 0.1394 and perceived brightness is 46%, so white text on it reaches 5.54:1.

Should I use black or white text on #c01b8e?

White. It scores 5.54:1 against #c01b8e, versus 3.79:1 for black — AA at any size.

What is the complementary color of #c01b8e?

#1BC04D sits directly opposite on the wheel. Softer options are the split-complements #3BC01B and #1BC09F, which give the same contrast with far less vibration.

What colors go well with #c01b8e?

For interface work: #FAF4F9 as the surface, #EDC0DF for borders, #9B4B83 for secondary text, #15B71E as an accent and #701053 for hover and pressed states. For a palette, the analogous pair #9F1BC0 and #C01B3B stays calm, while #1BC04D is the loudest partner.

What is #c01b8e in CMYK for printing?

cmyk(0%, 86%, 26%, 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 #c01b8e warm or cool?

Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C01B51; nudged cooler, #B719C2.

Work with #c01b8e in the Color Lab