Skip to content

#cd027f

a dark, electric magenta / pink · warm · closest name: Medium Violet Red

RGB
205, 2, 127
HSL
323°, 98%, 41%
CMYK
0, 99, 38, 20
Luminance
0.1455

At a glance

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

Hex
#cd027f
Hue
323°
magenta / pink
Saturation
98%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1455
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.37:1
Closest name
Medium Violet Red
ΔE2000 1.8
Where it sits
Hue323° of 360°
Saturation98%
Lightness41%
Temperature
Warm ← → Cool37% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#cd027f
RGBrgb(205, 2, 127)
HSLhsl(323, 98%, 41%)
CMYKcmyk(0%, 99%, 38%, 20%)
LABlab(45.0 73.7 -11.0)
LCHlch(45.0 74.5 351.5)
OKLCHoklch(0.557 0.229 352.9)
Decimal13435519
Display P3color(display-p3 0.804 0.008 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd027f on white: 5.37:1
AA ✓ pass · AA-large · AAA
Aa
#cd027f on black: 3.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3F5581
deuteranopia · #75767B
tritanopia · #DE004A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cd027f is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDF1F9
#FCE3F3
#FBC1E5
#FE90D4
#FD58BE
#FD21A8
#F20296
#cd027f
#A20264
#74064A
#49042E
Base = 700Lightest = 50 · #FDF1F9Darkest = 950 · #49042E
:root {
  --brand-50: #FDF1F9;
  --brand-100: #FCE3F3;
  --brand-200: #FBC1E5;
  --brand-300: #FE90D4;
  --brand-400: #FD58BE;
  --brand-500: #FD21A8;
  --brand-600: #F20296;
  --brand-700: #cd027f;
  --brand-800: #A20264;
  --brand-900: #74064A;
  --brand-950: #49042E;
  --brand: #cd027f;
  --brand-ink: #ffffff;
}

Colors that work with #cd027f

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#FAF4F8
Tinted page background
Border#EDC0DB
Hairlines and dividers
Muted text#9B4B7C
Captions on the surface
Accent#00CC1C
Second voice, not a rival
Dark variant#7E014E
Hover, pressed, headers
Light variant#FFE6F5
Selected rows, tints
Dark surface#24141E
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 #cd027f

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#02CD50
Analogous left#B602CD
Analogous right#CD0219
Split-complement 1#19CD02
Split-complement 2#02CDB6
Triadic 1#7FCD02
Triadic 2#027FCD
Tetradic#CDB602

RGB percentages

Red80.4%
Green0.8%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta99.0%
Yellow38.0%
Key (black)19.6%

Color previews

#cd027f text on a black background

contrast 3.91:1

Card sample

#cd027f text on a white background

contrast 5.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd027f

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.

#cd027f 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#cd027f, answered

What color is #cd027f?

#cd027f is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 1.8). It sits at 323° on the hue wheel with 98% saturation and 41% lightness, which reads as warm.

What is the RGB value of #cd027f?

rgb(205, 2, 127) — 205 red, 2 green and 127 blue out of 255, or 80.4% / 0.8% / 49.8% by channel.

Is #cd027f a light or a dark color?

It is a dark color. Relative luminance is 0.1455 and perceived brightness is 47%, so white text on it reaches 5.37:1.

Should I use black or white text on #cd027f?

White. It scores 5.37:1 against #cd027f, versus 3.91:1 for black — AA at any size.

What is the complementary color of #cd027f?

#02CD50 sits directly opposite on the wheel. Softer options are the split-complements #19CD02 and #02CDB6, which give the same contrast with far less vibration.

What colors go well with #cd027f?

For interface work: #FAF4F8 as the surface, #EDC0DB for borders, #9B4B7C for secondary text, #00CC1C as an accent and #7E014E for hover and pressed states. For a palette, the analogous pair #B602CD and #CD0219 stays calm, while #02CD50 is the loudest partner.

What is #cd027f in CMYK for printing?

cmyk(0%, 99%, 38%, 20%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #cd027f warm or cool?

Warm — it scores 37 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD0234; nudged cooler, #CF00CB.

Work with #cd027f in the Color Lab