Skip to content

#cc2eb0

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

RGB
204, 46, 176
HSL
311°, 63%, 49%
CMYK
0, 78, 14, 20
Luminance
0.1793

At a glance

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

Hex
#cc2eb0
Hue
311°
magenta / pink
Saturation
63%
vivid
Lightness
49%
balanced
Brightness
80%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1793
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.59:1
Closest name
Medium Violet Red
ΔE2000 8.1
Where it sits
Hue311° of 360°
Saturation63%
Lightness49%
Temperature
Warm ← → Cool44% 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#cc2eb0
RGBrgb(204, 46, 176)
HSLhsl(311, 63%, 49%)
CMYKcmyk(0%, 78%, 14%, 20%)
LABlab(49.4 72.0 -33.7)
LCHlch(49.4 79.5 334.9)
OKLCHoklch(0.595 0.231 336.6)
Decimal13381296
Display P3color(display-p3 0.800 0.180 0.690)

Copy-ready code

/* CSS */
color: #cc2eb0;
background-color: #cc2eb0;
/* Tailwind (arbitrary) */
class="text-[#cc2eb0] bg-[#cc2eb0]"
/* SCSS */
$brand: #cc2eb0;
/* SwiftUI */
Color(red: 0.800, green: 0.180, blue: 0.690)
/* Android */
Color.parseColor("#cc2eb0")
/* Flutter */
Color(0xFFCC2EB0)
/* Python / OpenCV (BGR) */
(176, 46, 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#000000 on #cc2eb0 · 4.59:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.58:1
AA pass · AA large pass · AAA fail
Aa
Black text · 4.59:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #cc2eb0 as text scores 4.58:1 on white and 4.59:1 on black.

Accessibility — WCAG contrast

Aa
#cc2eb0 on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#cc2eb0 on black: 4.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3266B3
deuteranopia · #6B7EAC
tritanopia · #D73A6D

Color scale — 50 to 950

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

#FBF4FA
#F7E8F5
#F0CBEA
#EAA3DE
#E076CD
#D648BD
#cc2eb0
#A62690
#851E73
#611A54
#3C1035
Base = 600Lightest = 50 · #FBF4FADarkest = 950 · #3C1035
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F7E8F5;
  --brand-200: #F0CBEA;
  --brand-300: #EAA3DE;
  --brand-400: #E076CD;
  --brand-500: #D648BD;
  --brand-600: #cc2eb0;
  --brand-700: #A62690;
  --brand-800: #851E73;
  --brand-900: #611A54;
  --brand-950: #3C1035;
  --brand: #cc2eb0;
  --brand-ink: #000000;
}

Colors that work with #cc2eb0

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4F9
Tinted page background
Border#EDC0E5
Hairlines and dividers
Muted text#9B4B8D
Captions on the surface
Accent#2BAB21
Second voice, not a rival
Dark variant#68175A
Hover, pressed, headers
Light variant#FAEAF7
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 #cc2eb0

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#2ECC4A
Analogous left#992ECC
Analogous right#CC2E61
Split-complement 1#61CC2E
Split-complement 2#2ECC99
Triadic 1#B0CC2E
Triadic 2#2EB0CC
Tetradic#CC992E

RGB percentages

Red80.0%
Green18.0%
Blue69.0%

CMYK percentages

Cyan0.0%
Magenta77.5%
Yellow13.7%
Key (black)20.0%

Color previews

#cc2eb0 text on a black background

contrast 4.59:1

Card sample

#cc2eb0 text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2eb0

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.

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

#cc2eb0, answered

What color is #cc2eb0?

#cc2eb0 is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 8.1). It sits at 311° on the hue wheel with 63% saturation and 49% lightness, which reads as neutral.

What is the RGB value of #cc2eb0?

rgb(204, 46, 176) — 204 red, 46 green and 176 blue out of 255, or 80% / 18% / 69% by channel.

Is #cc2eb0 a light or a dark color?

It is a dark color. Relative luminance is 0.1793 and perceived brightness is 51%, so black text on it reaches 4.59:1.

Should I use black or white text on #cc2eb0?

Black. It scores 4.59:1 against #cc2eb0, versus 4.58:1 for white — AA at any size.

What is the complementary color of #cc2eb0?

#2ECC4A sits directly opposite on the wheel. Softer options are the split-complements #61CC2E and #2ECC99, which give the same contrast with far less vibration.

What colors go well with #cc2eb0?

For interface work: #FAF4F9 as the surface, #EDC0E5 for borders, #9B4B8D for secondary text, #2BAB21 as an accent and #68175A for hover and pressed states. For a palette, the analogous pair #992ECC and #CC2E61 stays calm, while #2ECC4A is the loudest partner.

What is #cc2eb0 in CMYK for printing?

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

Is #cc2eb0 warm or cool?

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

Work with #cc2eb0 in the Color Lab