Skip to content

#cd02df

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

RGB
205, 2, 223
HSL
295°, 98%, 44%
CMYK
8, 99, 0, 13
Luminance
0.1835

At a glance

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

Hex
#cd02df
Hue
295°
magenta / pink
Saturation
98%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1835
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.67:1
Closest name
Medium Orchid
ΔE2000 7.2
Where it sits
Hue295° of 360°
Saturation98%
Lightness44%
Temperature
Warm ← → Cool53% 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#cd02df
RGBrgb(205, 2, 223)
HSLhsl(295, 98%, 44%)
CMYKcmyk(8%, 99%, 0%, 13%)
LABlab(49.9 85.9 -60.0)
LCHlch(49.9 104.8 325.0)
OKLCHoklch(0.607 0.285 323.8)
Decimal13435615
Display P3color(display-p3 0.804 0.008 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd02df on white: 4.50:1
AA ✓ pass · AA-large · AAA
Aa
#cd02df on black: 4.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006AE4
deuteranopia · #437DDB
tritanopia · #D14683

Color scale — 50 to 950

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

#FCF1FD
#FAE3FC
#F6C1FB
#F590FE
#F058FD
#EB21FD
#cd02df
#BA02CA
#9501A2
#6B0674
#430449
Base = 600Lightest = 50 · #FCF1FDDarkest = 950 · #430449
:root {
  --brand-50: #FCF1FD;
  --brand-100: #FAE3FC;
  --brand-200: #F6C1FB;
  --brand-300: #F590FE;
  --brand-400: #F058FD;
  --brand-500: #EB21FD;
  --brand-600: #cd02df;
  --brand-700: #BA02CA;
  --brand-800: #9501A2;
  --brand-900: #6B0674;
  --brand-950: #430449;
  --brand: #cd02df;
  --brand-ink: #000000;
}

Colors that work with #cd02df

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4FA
Tinted page background
Border#E9C0ED
Hairlines and dividers
Muted text#944B9B
Captions on the surface
Accent#44CC00
Second voice, not a rival
Dark variant#74017E
Hover, pressed, headers
Light variant#FDE6FF
Selected rows, tints
Dark surface#231424
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 #cd02df

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#14DF02
Analogous left#5E02DF
Analogous right#DF0282
Split-complement 1#82DF02
Split-complement 2#02DF5E
Triadic 1#DFCD02
Triadic 2#02DFCD
Tetradic#DF5E02

RGB percentages

Red80.4%
Green0.8%
Blue87.5%

CMYK percentages

Cyan8.1%
Magenta99.1%
Yellow0.0%
Key (black)12.5%

Color previews

#cd02df text on a black background

contrast 4.67:1

Card sample

#cd02df text on a white background

contrast 4.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd02df

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.

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

#cd02df, answered

What color is #cd02df?

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

What is the RGB value of #cd02df?

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

Is #cd02df a light or a dark color?

It is a mid-tone. Relative luminance is 0.1835 and perceived brightness is 53%, so black text on it reaches 4.67:1.

Should I use black or white text on #cd02df?

Black. It scores 4.67:1 against #cd02df, versus 4.50:1 for white — AA at any size.

What is the complementary color of #cd02df?

#14DF02 sits directly opposite on the wheel. Softer options are the split-complements #82DF02 and #02DF5E, which give the same contrast with far less vibration.

What colors go well with #cd02df?

For interface work: #FAF4FA as the surface, #E9C0ED for borders, #944B9B for secondary text, #44CC00 as an accent and #74017E for hover and pressed states. For a palette, the analogous pair #5E02DF and #DF0282 stays calm, while #14DF02 is the loudest partner.

What is #cd02df in CMYK for printing?

cmyk(8%, 99%, 0%, 13%). 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 #cd02df warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF02A0; nudged cooler, #7C00E1.

Work with #cd02df in the Color Lab