Skip to content

#cd0cd2

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

RGB
205, 12, 210
HSL
299°, 89%, 44%
CMYK
2, 94, 0, 18
Luminance
0.1790

At a glance

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

Hex
#cd0cd2
Hue
299°
magenta / pink
Saturation
89%
electric
Lightness
44%
dark
Brightness
82%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1790
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.59:1
Closest name
Medium Orchid
ΔE2000 7.3
Where it sits
Hue299° of 360°
Saturation89%
Lightness44%
Temperature
Warm ← → Cool51% 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#cd0cd2
RGBrgb(205, 12, 210)
HSLhsl(299, 89%, 44%)
CMYKcmyk(2%, 94%, 0%, 18%)
LABlab(49.4 83.1 -53.5)
LCHlch(49.4 98.8 327.2)
OKLCHoklch(0.601 0.274 327.0)
Decimal13438162
Display P3color(display-p3 0.804 0.047 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd0cd2 on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#cd0cd2 on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0067D6
deuteranopia · #507DCE
tritanopia · #D3407C

Color scale — 50 to 950

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

#FDF2FD
#FAE5FB
#F7C4F8
#F695F9
#F260F6
#EE2BF3
#E20DE8
#cd0cd2
#97099A
#6D0B6F
#440746
Base = 700Lightest = 50 · #FDF2FDDarkest = 950 · #440746
:root {
  --brand-50: #FDF2FD;
  --brand-100: #FAE5FB;
  --brand-200: #F7C4F8;
  --brand-300: #F695F9;
  --brand-400: #F260F6;
  --brand-500: #EE2BF3;
  --brand-600: #E20DE8;
  --brand-700: #cd0cd2;
  --brand-800: #97099A;
  --brand-900: #6D0B6F;
  --brand-950: #440746;
  --brand: #cd0cd2;
  --brand-ink: #ffffff;
}

Colors that work with #cd0cd2

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#994B9B
Captions on the surface
Accent#3BC507
Second voice, not a rival
Dark variant#760779
Hover, pressed, headers
Light variant#FDE7FE
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 #cd0cd2

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#11D20C
Analogous left#6A0CD2
Analogous right#D20C74
Split-complement 1#74D20C
Split-complement 2#0CD26A
Triadic 1#D2CD0C
Triadic 2#0CD2CD
Tetradic#D26A0C

RGB percentages

Red80.4%
Green4.7%
Blue82.4%

CMYK percentages

Cyan2.4%
Magenta94.3%
Yellow0.0%
Key (black)17.6%

Color previews

#cd0cd2 text on a black background

contrast 4.58:1

Card sample

#cd0cd2 text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd0cd2

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.

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

#cd0cd2, answered

What color is #cd0cd2?

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

What is the RGB value of #cd0cd2?

rgb(205, 12, 210) — 205 red, 12 green and 210 blue out of 255, or 80.4% / 4.7% / 82.4% by channel.

Is #cd0cd2 a light or a dark color?

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

Should I use black or white text on #cd0cd2?

White. It scores 4.59:1 against #cd0cd2, versus 4.58:1 for black — AA at any size.

What is the complementary color of #cd0cd2?

#11D20C sits directly opposite on the wheel. Softer options are the split-complements #74D20C and #0CD26A, which give the same contrast with far less vibration.

What colors go well with #cd0cd2?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #994B9B for secondary text, #3BC507 as an accent and #760779 for hover and pressed states. For a palette, the analogous pair #6A0CD2 and #D20C74 stays calm, while #11D20C is the loudest partner.

What is #cd0cd2 in CMYK for printing?

cmyk(2%, 94%, 0%, 18%). 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 #cd0cd2 warm or cool?

Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D20C8E; nudged cooler, #850AD4.

Work with #cd0cd2 in the Color Lab