#cc1eb4
a balanced, vivid magenta / pink · neutral · closest name: Medium Violet Red
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.
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 |
| RGB | rgb(204, 30, 180) |
| HSL | hsl(308, 74%, 46%) |
| CMYK | cmyk(0%, 85%, 12%, 20%) |
| LAB | lab(48.3 76.2 -37.7) |
| LCH | lch(48.3 85.0 333.7) |
| OKLCH | oklch(0.588 0.246 335.2) |
| Decimal | 13377204 |
| Display P3 | color(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.
Accessibility — WCAG contrast
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.
: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.
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 #cc1eb4
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
- ✓Brand accents, badges and data highlights
- ⚠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 | Directly opposite — maximum tension | |
| Analogous left | #8D1ECC | Neighbour, quieter | |
| Analogous right | #CC1E5D | Neighbour, quieter | |
| Split-complement 1 | #5DCC1E | Contrast without the clash | |
| Split-complement 2 | #1ECC8D | Contrast without the clash | |
| Triadic 1 | #B4CC1E | Even thirds — balanced and loud | |
| Triadic 2 | #1EB4CC | Even thirds — balanced and loud | |
| Tetradic | #CC8D1E | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#cc1eb4 text on a black background
contrast 4.41:1
#cc1eb4 text on a white background
contrast 4.76:1
CSS3 live lab
The quick brown fox
color: #cc1eb4;
background-color: #cc1eb4;
Glowing headline
text-shadow: 2px 2px 8px #cc1eb4;
Soft neon halo
text-shadow: 0 0 14px rgba(204, 30, 180, 0.45);
box-shadow: 0 12px 32px -8px rgba(204, 30, 180, 0.45);
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.
Closest color with a full write-up: Mulberry (#c54b8c) — ΔE2000 10.3 away, with its history, psychology and brand usage.
#cc1eb4 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
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.