Skip to content

#cd028f

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

RGB
205, 2, 143
HSL
318°, 98%, 41%
CMYK
0, 99, 30, 20
Luminance
0.1501

At a glance

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

Hex
#cd028f
Hue
318°
magenta / pink
Saturation
98%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1501
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.25:1
Closest name
Medium Violet Red
ΔE2000 2
Where it sits
Hue318° of 360°
Saturation98%
Lightness41%
Temperature
Warm ← → Cool40% 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#cd028f
RGBrgb(205, 2, 143)
HSLhsl(318, 98%, 41%)
CMYKcmyk(0%, 99%, 30%, 20%)
LABlab(45.6 75.3 -19.8)
LCHlch(45.6 77.9 345.3)
OKLCHoklch(0.563 0.237 347.2)
Decimal13435535
Display P3color(display-p3 0.804 0.008 0.561)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd028f on white: 5.25:1
AA ✓ pass · AA-large · AAA
Aa
#cd028f on black: 4.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #365892
deuteranopia · #70778B
tritanopia · #DC0053

Color scale — 50 to 950

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

#FDF1FA
#FCE3F4
#FBC1E9
#FE90DC
#FD58CB
#FD21BA
#F202A9
#cd028f
#A20271
#740653
#490434
Base = 700Lightest = 50 · #FDF1FADarkest = 950 · #490434
:root {
  --brand-50: #FDF1FA;
  --brand-100: #FCE3F4;
  --brand-200: #FBC1E9;
  --brand-300: #FE90DC;
  --brand-400: #FD58CB;
  --brand-500: #FD21BA;
  --brand-600: #F202A9;
  --brand-700: #cd028f;
  --brand-800: #A20271;
  --brand-900: #740653;
  --brand-950: #490434;
  --brand: #cd028f;
  --brand-ink: #ffffff;
}

Colors that work with #cd028f

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#EDC0DF
Hairlines and dividers
Muted text#9B4B82
Captions on the surface
Accent#00CC0B
Second voice, not a rival
Dark variant#7E0158
Hover, pressed, headers
Light variant#FFE6F7
Selected rows, tints
Dark surface#24141F
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 #cd028f

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#02CD40
Analogous left#A502CD
Analogous right#CD022A
Split-complement 1#2ACD02
Split-complement 2#02CDA5
Triadic 1#8FCD02
Triadic 2#028FCD
Tetradic#CDA502

RGB percentages

Red80.4%
Green0.8%
Blue56.1%

CMYK percentages

Cyan0.0%
Magenta99.0%
Yellow30.2%
Key (black)19.6%

Color previews

#cd028f text on a black background

contrast 4.00:1

Card sample

#cd028f text on a white background

contrast 5.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd028f

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.

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

#cd028f, answered

What color is #cd028f?

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

What is the RGB value of #cd028f?

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

Is #cd028f a light or a dark color?

It is a dark color. Relative luminance is 0.1501 and perceived brightness is 48%, so white text on it reaches 5.25:1.

Should I use black or white text on #cd028f?

White. It scores 5.25:1 against #cd028f, versus 4.00:1 for black — AA at any size.

What is the complementary color of #cd028f?

#02CD40 sits directly opposite on the wheel. Softer options are the split-complements #2ACD02 and #02CDA5, which give the same contrast with far less vibration.

What colors go well with #cd028f?

For interface work: #FAF4F9 as the surface, #EDC0DF for borders, #9B4B82 for secondary text, #00CC0B as an accent and #7E0158 for hover and pressed states. For a palette, the analogous pair #A502CD and #CD022A stays calm, while #02CD40 is the loudest partner.

What is #cd028f in CMYK for printing?

cmyk(0%, 99%, 30%, 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 #cd028f warm or cool?

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

Work with #cd028f in the Color Lab