#cd2f87
a balanced, vivid magenta / pink · warm · closest name: Medium Violet Red
At a glance
Every number on this page in one read: what #cd2f87 is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #cd2f87 |
| RGB | rgb(205, 47, 135) |
| HSL | hsl(327, 63%, 49%) |
| CMYK | cmyk(0%, 77%, 34%, 20%) |
| LAB | lab(48.0 66.9 -11.4) |
| LCH | lch(48.0 67.8 350.3) |
| OKLCH | oklch(0.579 0.207 351.8) |
| Decimal | 13447047 |
| Display P3 | color(display-p3 0.804 0.184 0.529) |
Copy-ready code
/* CSS */
color: #cd2f87;
background-color: #cd2f87;
/* Tailwind (arbitrary) */
class="text-[#cd2f87] bg-[#cd2f87]"
/* SCSS */
$brand: #cd2f87;
/* SwiftUI */
Color(red: 0.804, green: 0.184, blue: 0.529)
/* Android */
Color.parseColor("#cd2f87")
/* Flutter */
Color(0xFFCD2F87)
/* Python / OpenCV (BGR) */
(135, 47, 205)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. #cd2f87 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: #FBF4F8;
--brand-100: #F7E8F1;
--brand-200: #F0CCE0;
--brand-300: #EAA4CB;
--brand-400: #E076B1;
--brand-500: #D54897;
--brand-600: #cd2f87;
--brand-700: #A6266D;
--brand-800: #851E57;
--brand-900: #611A41;
--brand-950: #3C1029;
--brand: #cd2f87;
--brand-ink: #ffffff;
}Colors that work with #cd2f87
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 #cd2f87
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 | #2FCD75 | Directly opposite — maximum tension | |
| Analogous left | #C42FCD | Neighbour, quieter | |
| Analogous right | #CD2F38 | Neighbour, quieter | |
| Split-complement 1 | #38CD2F | Contrast without the clash | |
| Split-complement 2 | #2FCDC4 | Contrast without the clash | |
| Triadic 1 | #87CD2F | Even thirds — balanced and loud | |
| Triadic 2 | #2F87CD | Even thirds — balanced and loud | |
| Tetradic | #CDC42F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#cd2f87 text on a black background
contrast 4.35:1
#cd2f87 text on a white background
contrast 4.83:1
CSS3 live lab
The quick brown fox
color: #cd2f87;
background-color: #cd2f87;
Glowing headline
text-shadow: 2px 2px 8px #cd2f87;
Soft neon halo
text-shadow: 0 0 14px rgba(205, 47, 135, 0.45);
box-shadow: 0 12px 32px -8px rgba(205, 47, 135, 0.45);
border: 3px solid #cd2f87; background: linear-gradient(135deg, #cd2f87, #CD402F);
Monochromatic scale
Palettes built from #cd2f87
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 4 away, with its history, psychology and brand usage.
#cd2f87 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.
#cd2f87, answered
What color is #cd2f87?
#cd2f87 is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 3.5). It sits at 327° on the hue wheel with 63% saturation and 49% lightness, which reads as warm.
What is the RGB value of #cd2f87?
rgb(205, 47, 135) — 205 red, 47 green and 135 blue out of 255, or 80.4% / 18.4% / 52.9% by channel.
Is #cd2f87 a light or a dark color?
It is a dark color. Relative luminance is 0.1676 and perceived brightness is 50%, so white text on it reaches 4.83:1.
Should I use black or white text on #cd2f87?
White. It scores 4.83:1 against #cd2f87, versus 4.35:1 for black — AA at any size.
What is the complementary color of #cd2f87?
#2FCD75 sits directly opposite on the wheel. Softer options are the split-complements #38CD2F and #2FCDC4, which give the same contrast with far less vibration.
What colors go well with #cd2f87?
For interface work: #FAF4F8 as the surface, #EDC0D9 for borders, #9B4B77 for secondary text, #22AA3C as an accent and #681844 for hover and pressed states. For a palette, the analogous pair #C42FCD and #CD2F38 stays calm, while #2FCD75 is the loudest partner.
What is #cd2f87 in CMYK for printing?
cmyk(0%, 77%, 34%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #cd2f87 warm or cool?
Warm — it scores 35 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD2F4D; nudged cooler, #CF2CC3.