Skip to content

#cc1eb4

a balanced, vivid magenta / pink · neutral · closest name: Medium Violet Red

RGB
204, 30, 180
HSL
308°, 74%, 46%
CMYK
0, 85, 12, 20
Luminance
0.1706

At a glance

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

Hex
#cc1eb4
Hue
308°
magenta / pink
Saturation
74%
vivid
Lightness
46%
balanced
Brightness
80%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1706
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.76:1
Closest name
Medium Violet Red
ΔE2000 8.5
Where it sits
Hue308° of 360°
Saturation74%
Lightness46%
Temperature
Warm ← → Cool45% 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#cc1eb4
RGBrgb(204, 30, 180)
HSLhsl(308, 74%, 46%)
CMYKcmyk(0%, 85%, 12%, 20%)
LABlab(48.3 76.2 -37.7)
LCHlch(48.3 85.0 333.7)
OKLCHoklch(0.588 0.246 335.2)
Decimal13377204
Display P3color(display-p3 0.800 0.118 0.706)

Copy-ready code

/* CSS */
color: #cc1eb4;
background-color: #cc1eb4;
/* Tailwind (arbitrary) */
class="text-[#cc1eb4] bg-[#cc1eb4]"
/* SCSS */
$brand: #cc1eb4;
/* SwiftUI */
Color(red: 0.800, green: 0.118, blue: 0.706)
/* Android */
Color.parseColor("#cc1eb4")
/* Flutter */
Color(0xFFCC1EB4)
/* Python / OpenCV (BGR) */
(180, 30, 204)

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

Accessibility — WCAG contrast

Aa
#cc1eb4 on white: 4.76:1
AA ✓ pass · AA-large · AAA
Aa
#cc1eb4 on black: 4.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1D63B8
deuteranopia · #657BB0
tritanopia · #D6326C

Color scale — 50 to 950

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

#FCF3FB
#F9E7F6
#F4C8EE
#F19DE5
#E96CD8
#E23BCB
#cc1eb4
#B21A9D
#8E157E
#67135C
#400C39
Base = 600Lightest = 50 · #FCF3FBDarkest = 950 · #400C39
:root {
  --brand-50: #FCF3FB;
  --brand-100: #F9E7F6;
  --brand-200: #F4C8EE;
  --brand-300: #F19DE5;
  --brand-400: #E96CD8;
  --brand-500: #E23BCB;
  --brand-600: #cc1eb4;
  --brand-700: #B21A9D;
  --brand-800: #8E157E;
  --brand-900: #67135C;
  --brand-950: #400C39;
  --brand: #cc1eb4;
  --brand-ink: #ffffff;
}

Colors that work with #cc1eb4

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#FAF4FA
Tinted page background
Border#EDC0E6
Hairlines and dividers
Muted text#9B4B90
Captions on the surface
Accent#28B616
Second voice, not a rival
Dark variant#6F1062
Hover, pressed, headers
Light variant#FCE9F9
Selected rows, tints
Dark surface#241422
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 #cc1eb4

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#1ECC36
Analogous left#8D1ECC
Analogous right#CC1E5D
Split-complement 1#5DCC1E
Split-complement 2#1ECC8D
Triadic 1#B4CC1E
Triadic 2#1EB4CC
Tetradic#CC8D1E

RGB percentages

Red80.0%
Green11.8%
Blue70.6%

CMYK percentages

Cyan0.0%
Magenta85.3%
Yellow11.8%
Key (black)20.0%

Color previews

#cc1eb4 text on a black background

contrast 4.41:1

Card sample

#cc1eb4 text on a white background

contrast 4.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 30, 180, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 30, 180, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cc1eb4;
background: linear-gradient(135deg, #cc1eb4, #CC1E40);

Monochromatic scale

Palettes built from #cc1eb4

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.

#cc1eb4 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

Converts to four-color process without much drama. Proof it anyway.

#cc1eb4, answered

What color is #cc1eb4?

#cc1eb4 is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 8.5). It sits at 308° on the hue wheel with 74% saturation and 46% lightness, which reads as neutral.

What is the RGB value of #cc1eb4?

rgb(204, 30, 180) — 204 red, 30 green and 180 blue out of 255, or 80% / 11.8% / 70.6% by channel.

Is #cc1eb4 a light or a dark color?

It is a dark color. Relative luminance is 0.1706 and perceived brightness is 51%, so white text on it reaches 4.76:1.

Should I use black or white text on #cc1eb4?

White. It scores 4.76:1 against #cc1eb4, versus 4.41:1 for black — AA at any size.

What is the complementary color of #cc1eb4?

#1ECC36 sits directly opposite on the wheel. Softer options are the split-complements #5DCC1E and #1ECC8D, which give the same contrast with far less vibration.

What colors go well with #cc1eb4?

For interface work: #FAF4FA as the surface, #EDC0E6 for borders, #9B4B90 for secondary text, #28B616 as an accent and #6F1062 for hover and pressed states. For a palette, the analogous pair #8D1ECC and #CC1E5D stays calm, while #1ECC36 is the loudest partner.

What is #cc1eb4 in CMYK for printing?

cmyk(0%, 85%, 12%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cc1eb4 warm or cool?

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

Work with #cc1eb4 in the Color Lab