Skip to content

#cc2aaa

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

RGB
204, 42, 170
HSL
313°, 66%, 48%
CMYK
0, 79, 17, 20
Luminance
0.1740

At a glance

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

Hex
#cc2aaa
Hue
313°
magenta / pink
Saturation
66%
vivid
Lightness
48%
balanced
Brightness
80%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1740
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.69:1
Closest name
Medium Violet Red
ΔE2000 7
Where it sits
Hue313° of 360°
Saturation66%
Lightness48%
Temperature
Warm ← → Cool43% 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#cc2aaa
RGBrgb(204, 42, 170)
HSLhsl(313, 66%, 48%)
CMYKcmyk(0%, 79%, 17%, 20%)
LABlab(48.8 72.2 -31.2)
LCHlch(48.8 78.7 336.7)
OKLCHoklch(0.589 0.231 338.5)
Decimal13380266
Display P3color(display-p3 0.800 0.165 0.667)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cc2aaa on white: 4.69:1
AA ✓ pass · AA-large · AAA
Aa
#cc2aaa on black: 4.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3464AD
deuteranopia · #6C7DA6
tritanopia · #D83369

Color scale — 50 to 950

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

#FBF3FA
#F8E8F4
#F1CBE9
#ECA2DC
#E273CB
#D945BA
#cc2aaa
#A9238D
#871C71
#621853
#3D0F34
Base = 600Lightest = 50 · #FBF3FADarkest = 950 · #3D0F34
:root {
  --brand-50: #FBF3FA;
  --brand-100: #F8E8F4;
  --brand-200: #F1CBE9;
  --brand-300: #ECA2DC;
  --brand-400: #E273CB;
  --brand-500: #D945BA;
  --brand-600: #cc2aaa;
  --brand-700: #A9238D;
  --brand-800: #871C71;
  --brand-900: #621853;
  --brand-950: #3D0F34;
  --brand: #cc2aaa;
  --brand-ink: #ffffff;
}

Colors that work with #cc2aaa

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#EDC0E3
Hairlines and dividers
Muted text#9B4B8A
Captions on the surface
Accent#24AD1F
Second voice, not a rival
Dark variant#6A1658
Hover, pressed, headers
Light variant#FBEAF7
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 #cc2aaa

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#2ACC4C
Analogous left#9D2ACC
Analogous right#CC2A59
Split-complement 1#59CC2A
Split-complement 2#2ACC9D
Triadic 1#AACC2A
Triadic 2#2AAACC
Tetradic#CC9D2A

RGB percentages

Red80.0%
Green16.5%
Blue66.7%

CMYK percentages

Cyan0.0%
Magenta79.4%
Yellow16.7%
Key (black)20.0%

Color previews

#cc2aaa text on a black background

contrast 4.48:1

Card sample

#cc2aaa text on a white background

contrast 4.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc2aaa

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.

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

#cc2aaa, answered

What color is #cc2aaa?

#cc2aaa is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 7). It sits at 313° on the hue wheel with 66% saturation and 48% lightness, which reads as neutral.

What is the RGB value of #cc2aaa?

rgb(204, 42, 170) — 204 red, 42 green and 170 blue out of 255, or 80% / 16.5% / 66.7% by channel.

Is #cc2aaa a light or a dark color?

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

Should I use black or white text on #cc2aaa?

White. It scores 4.69:1 against #cc2aaa, versus 4.48:1 for black — AA at any size.

What is the complementary color of #cc2aaa?

#2ACC4C sits directly opposite on the wheel. Softer options are the split-complements #59CC2A and #2ACC9D, which give the same contrast with far less vibration.

What colors go well with #cc2aaa?

For interface work: #FAF4F9 as the surface, #EDC0E3 for borders, #9B4B8A for secondary text, #24AD1F as an accent and #6A1658 for hover and pressed states. For a palette, the analogous pair #9D2ACC and #CC2A59 stays calm, while #2ACC4C is the loudest partner.

What is #cc2aaa in CMYK for printing?

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

Is #cc2aaa warm or cool?

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

Work with #cc2aaa in the Color Lab