Skip to content

#cc02db

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

RGB
204, 2, 219
HSL
296°, 98%, 43%
CMYK
7, 99, 0, 14
Luminance
0.1800

At a glance

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

Hex
#cc02db
Hue
296°
magenta / pink
Saturation
98%
electric
Lightness
43%
dark
Brightness
86%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1800
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.60:1
Closest name
Medium Orchid
ΔE2000 7.3
Where it sits
Hue296° of 360°
Saturation98%
Lightness43%
Temperature
Warm ← → Cool52% 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#cc02db
RGBrgb(204, 2, 219)
HSLhsl(296, 98%, 43%)
CMYKcmyk(7%, 99%, 0%, 14%)
LABlab(49.5 85.1 -58.5)
LCHlch(49.5 103.2 325.5)
OKLCHoklch(0.603 0.282 324.5)
Decimal13370075
Display P3color(display-p3 0.800 0.008 0.859)

Copy-ready code

/* CSS */
color: #cc02db;
background-color: #cc02db;
/* Tailwind (arbitrary) */
class="text-[#cc02db] bg-[#cc02db]"
/* SCSS */
$brand: #cc02db;
/* SwiftUI */
Color(red: 0.800, green: 0.008, blue: 0.859)
/* Android */
Color.parseColor("#cc02db")
/* Flutter */
Color(0xFFCC02DB)
/* Python / OpenCV (BGR) */
(219, 2, 204)

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 #cc02db · 4.60:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.57:1
AA pass · AA large pass · AAA fail
Aa
Black text · 4.60:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #cc02db as text scores 4.57:1 on white and 4.60:1 on black.

Accessibility — WCAG contrast

Aa
#cc02db on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#cc02db on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0069E0
deuteranopia · #467CD7
tritanopia · #D04481

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cc02db 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
#FAE3FC
#F7C1FB
#F690FE
#F258FD
#EE21FD
#E202F3
#cc02db
#9701A2
#6D0674
#440449
Base = 700Lightest = 50 · #FDF1FDDarkest = 950 · #440449
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FAE3FC;
  --brand-200: #F7C1FB;
  --brand-300: #F690FE;
  --brand-400: #F258FD;
  --brand-500: #EE21FD;
  --brand-600: #E202F3;
  --brand-700: #cc02db;
  --brand-800: #9701A2;
  --brand-900: #6D0674;
  --brand-950: #440449;
  --brand: #cc02db;
  --brand-ink: #000000;
}

Colors that work with #cc02db

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#EAC0ED
Hairlines and dividers
Muted text#954B9B
Captions on the surface
Accent#41CC00
Second voice, not a rival
Dark variant#76017E
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 #cc02db

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#11DB02
Analogous left#6002DB
Analogous right#DB027D
Split-complement 1#7DDB02
Split-complement 2#02DB60
Triadic 1#DBCC02
Triadic 2#02DBCC
Tetradic#DB6002

RGB percentages

Red80.0%
Green0.8%
Blue85.9%

CMYK percentages

Cyan6.8%
Magenta99.1%
Yellow0.0%
Key (black)14.1%

Color previews

#cc02db text on a black background

contrast 4.60:1

Card sample

#cc02db text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc02db

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.

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

#cc02db, answered

What color is #cc02db?

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

What is the RGB value of #cc02db?

rgb(204, 2, 219) — 204 red, 2 green and 219 blue out of 255, or 80% / 0.8% / 85.9% by channel.

Is #cc02db a light or a dark color?

It is a dark color. Relative luminance is 0.1800 and perceived brightness is 52%, so black text on it reaches 4.60:1.

Should I use black or white text on #cc02db?

Black. It scores 4.60:1 against #cc02db, versus 4.57:1 for white — AA at any size.

What is the complementary color of #cc02db?

#11DB02 sits directly opposite on the wheel. Softer options are the split-complements #7DDB02 and #02DB60, which give the same contrast with far less vibration.

What colors go well with #cc02db?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #954B9B for secondary text, #41CC00 as an accent and #76017E for hover and pressed states. For a palette, the analogous pair #6002DB and #DB027D stays calm, while #11DB02 is the loudest partner.

What is #cc02db in CMYK for printing?

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

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

Work with #cc02db in the Color Lab