Skip to content

#cd02cf

a dark, electric magenta / pink · neutral · closest name: Medium Orchid

RGB
205, 2, 207
HSL
299°, 98%, 41%
CMYK
1, 99, 0, 19
Luminance
0.1753

At a glance

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

Hex
#cd02cf
Hue
299°
magenta / pink
Saturation
98%
electric
Lightness
41%
dark
Brightness
81%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1753
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.66:1
Closest name
Medium Orchid
ΔE2000 7.7
Where it sits
Hue299° of 360°
Saturation98%
Lightness41%
Temperature
Warm ← → Cool50% 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#cd02cf
RGBrgb(205, 2, 207)
HSLhsl(299, 98%, 41%)
CMYKcmyk(1%, 99%, 0%, 19%)
LABlab(48.9 83.5 -52.5)
LCHlch(48.9 98.6 327.8)
OKLCHoklch(0.597 0.274 327.8)
Decimal13435599
Display P3color(display-p3 0.804 0.008 0.812)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd02cf on white: 4.66:1
AA ✓ pass · AA-large · AAA
Aa
#cd02cf on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0066D3
deuteranopia · #517CCB
tritanopia · #D43C7A

Color scale — 50 to 950

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

#FDF1FD
#FCE3FC
#FAC1FB
#FD90FE
#FC58FD
#FB21FD
#F002F2
#cd02cf
#A002A2
#730674
#480449
Base = 700Lightest = 50 · #FDF1FDDarkest = 950 · #480449
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FCE3FC;
  --brand-200: #FAC1FB;
  --brand-300: #FD90FE;
  --brand-400: #FC58FD;
  --brand-500: #FB21FD;
  --brand-600: #F002F2;
  --brand-700: #cd02cf;
  --brand-800: #A002A2;
  --brand-900: #730674;
  --brand-950: #480449;
  --brand: #cd02cf;
  --brand-ink: #ffffff;
}

Colors that work with #cd02cf

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#FAF4FA
Tinted page background
Border#ECC0ED
Hairlines and dividers
Muted text#9A4B9B
Captions on the surface
Accent#35CC00
Second voice, not a rival
Dark variant#7D017E
Hover, pressed, headers
Light variant#FFE6FF
Selected rows, tints
Dark surface#241424
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 #cd02cf

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
  • 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#04CF02
Analogous left#6602CF
Analogous right#CF026B
Split-complement 1#6BCF02
Split-complement 2#02CF66
Triadic 1#CFCD02
Triadic 2#02CFCD
Tetradic#CF6602

RGB percentages

Red80.4%
Green0.8%
Blue81.2%

CMYK percentages

Cyan1.0%
Magenta99.0%
Yellow0.0%
Key (black)18.8%

Color previews

#cd02cf text on a black background

contrast 4.51:1

Card sample

#cd02cf text on a white background

contrast 4.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd02cf

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.

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

#cd02cf, answered

What color is #cd02cf?

#cd02cf is a dark electric magenta / pink, closest to Medium Orchid (ΔE2000 7.7). It sits at 299° on the hue wheel with 98% saturation and 41% lightness, which reads as neutral.

What is the RGB value of #cd02cf?

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

Is #cd02cf a light or a dark color?

It is a dark color. Relative luminance is 0.1753 and perceived brightness is 52%, so white text on it reaches 4.66:1.

Should I use black or white text on #cd02cf?

White. It scores 4.66:1 against #cd02cf, versus 4.51:1 for black — AA at any size.

What is the complementary color of #cd02cf?

#04CF02 sits directly opposite on the wheel. Softer options are the split-complements #6BCF02 and #02CF66, which give the same contrast with far less vibration.

What colors go well with #cd02cf?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #9A4B9B for secondary text, #35CC00 as an accent and #7D017E for hover and pressed states. For a palette, the analogous pair #6602CF and #CF026B stays calm, while #04CF02 is the loudest partner.

What is #cd02cf in CMYK for printing?

cmyk(1%, 99%, 0%, 19%). 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 #cd02cf warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF0286; nudged cooler, #8200D1.

Work with #cd02cf in the Color Lab