Skip to content

#cd28af

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

RGB
205, 40, 175
HSL
311°, 67%, 48%
CMYK
0, 81, 15, 20
Luminance
0.1759

At a glance

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

Hex
#cd28af
Hue
311°
magenta / pink
Saturation
67%
vivid
Lightness
48%
balanced
Brightness
80%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1759
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.65:1
Closest name
Medium Violet Red
ΔE2000 7.8
Where it sits
Hue311° of 360°
Saturation67%
Lightness48%
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#cd28af
RGBrgb(205, 40, 175)
HSLhsl(311, 67%, 48%)
CMYKcmyk(0%, 81%, 15%, 20%)
LABlab(49.0 73.6 -33.7)
LCHlch(49.0 81.0 335.4)
OKLCHoklch(0.592 0.236 337.1)
Decimal13445295
Display P3color(display-p3 0.804 0.157 0.686)

Copy-ready code

/* CSS */
color: #cd28af;
background-color: #cd28af;
/* Tailwind (arbitrary) */
class="text-[#cd28af] bg-[#cd28af]"
/* SCSS */
$brand: #cd28af;
/* SwiftUI */
Color(red: 0.804, green: 0.157, blue: 0.686)
/* Android */
Color.parseColor("#cd28af")
/* Flutter */
Color(0xFFCD28AF)
/* Python / OpenCV (BGR) */
(175, 40, 205)

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

Accessibility — WCAG contrast

Aa
#cd28af on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#cd28af on black: 4.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2E65B2
deuteranopia · #6A7DAB
tritanopia · #D8356B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cd28af 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
#F8E8F5
#F1CAEA
#EDA1DF
#E372CF
#DA43BF
#cd28af
#AB2192
#891B75
#631755
#3E0F35
Base = 600Lightest = 50 · #FBF3FADarkest = 950 · #3E0F35
:root {
  --brand-50: #FBF3FA;
  --brand-100: #F8E8F5;
  --brand-200: #F1CAEA;
  --brand-300: #EDA1DF;
  --brand-400: #E372CF;
  --brand-500: #DA43BF;
  --brand-600: #cd28af;
  --brand-700: #AB2192;
  --brand-800: #891B75;
  --brand-900: #631755;
  --brand-950: #3E0F35;
  --brand: #cd28af;
  --brand-ink: #ffffff;
}

Colors that work with #cd28af

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#EDC0E4
Hairlines and dividers
Muted text#9B4B8C
Captions on the surface
Accent#27AF1D
Second voice, not a rival
Dark variant#6B155B
Hover, pressed, headers
Light variant#FBEAF8
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 #cd28af

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#28CD46
Analogous left#9828CD
Analogous right#CD285C
Split-complement 1#5CCD28
Split-complement 2#28CD98
Triadic 1#AFCD28
Triadic 2#28AFCD
Tetradic#CD9828

RGB percentages

Red80.4%
Green15.7%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta80.5%
Yellow14.6%
Key (black)19.6%

Color previews

#cd28af text on a black background

contrast 4.52:1

Card sample

#cd28af text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 40, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 40, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd28af;
background: linear-gradient(135deg, #cd28af, #CD2841);

Monochromatic scale

Palettes built from #cd28af

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.

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

#cd28af, answered

What color is #cd28af?

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

What is the RGB value of #cd28af?

rgb(205, 40, 175) — 205 red, 40 green and 175 blue out of 255, or 80.4% / 15.7% / 68.6% by channel.

Is #cd28af a light or a dark color?

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

Should I use black or white text on #cd28af?

White. It scores 4.65:1 against #cd28af, versus 4.52:1 for black — AA at any size.

What is the complementary color of #cd28af?

#28CD46 sits directly opposite on the wheel. Softer options are the split-complements #5CCD28 and #28CD98, which give the same contrast with far less vibration.

What colors go well with #cd28af?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8C for secondary text, #27AF1D as an accent and #6B155B for hover and pressed states. For a palette, the analogous pair #9828CD and #CD285C stays calm, while #28CD46 is the loudest partner.

What is #cd28af in CMYK for printing?

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

Is #cd28af 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 #CD2872; nudged cooler, #B026CF.

Work with #cd28af in the Color Lab