Skip to content

#cd08ad

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

RGB
205, 8, 173
HSL
310°, 93%, 42%
CMYK
0, 96, 16, 20
Luminance
0.1617

At a glance

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

Hex
#cd08ad
Hue
310°
magenta / pink
Saturation
93%
electric
Lightness
42%
dark
Brightness
80%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1617
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.96:1
Closest name
Medium Violet Red
ΔE2000 7.3
Where it sits
Hue310° of 360°
Saturation93%
Lightness42%
Temperature
Warm ← → Cool45% 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#cd08ad
RGBrgb(205, 8, 173)
HSLhsl(310, 93%, 42%)
CMYKcmyk(0%, 96%, 16%, 20%)
LABlab(47.2 78.3 -35.4)
LCHlch(47.2 85.9 335.7)
OKLCHoklch(0.579 0.252 337.4)
Decimal13437101
Display P3color(display-p3 0.804 0.031 0.678)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd08ad on white: 4.96:1
AA ✓ pass · AA-large · AAA
Aa
#cd08ad on black: 4.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #195FB1
deuteranopia · #6579A9
tritanopia · #D92266

Color scale — 50 to 950

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

#FDF2FB
#FBE4F7
#F9C3F0
#FB93EA
#F95DE0
#F727D5
#EC09C7
#cd08ad
#9D0685
#710960
#47063C
Base = 700Lightest = 50 · #FDF2FBDarkest = 950 · #47063C
:root {
  --brand-50: #FDF2FB;
  --brand-100: #FBE4F7;
  --brand-200: #F9C3F0;
  --brand-300: #FB93EA;
  --brand-400: #F95DE0;
  --brand-500: #F727D5;
  --brand-600: #EC09C7;
  --brand-700: #cd08ad;
  --brand-800: #9D0685;
  --brand-900: #710960;
  --brand-950: #47063C;
  --brand: #cd08ad;
  --brand-ink: #ffffff;
}

Colors that work with #cd08ad

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#EDC0E5
Hairlines and dividers
Muted text#9B4B8E
Captions on the surface
Accent#15C804
Second voice, not a rival
Dark variant#7B0568
Hover, pressed, headers
Light variant#FEE6FA
Selected rows, tints
Dark surface#241422
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 #cd08ad

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#08CD28
Analogous left#8A08CD
Analogous right#CD084B
Split-complement 1#4BCD08
Split-complement 2#08CD8A
Triadic 1#ADCD08
Triadic 2#08ADCD
Tetradic#CD8A08

RGB percentages

Red80.4%
Green3.1%
Blue67.8%

CMYK percentages

Cyan0.0%
Magenta96.1%
Yellow15.6%
Key (black)19.6%

Color previews

#cd08ad text on a black background

contrast 4.23:1

Card sample

#cd08ad text on a white background

contrast 4.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd08ad

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.

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

#cd08ad, answered

What color is #cd08ad?

#cd08ad is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 7.3). It sits at 310° on the hue wheel with 93% saturation and 42% lightness, which reads as neutral.

What is the RGB value of #cd08ad?

rgb(205, 8, 173) — 205 red, 8 green and 173 blue out of 255, or 80.4% / 3.1% / 67.8% by channel.

Is #cd08ad a light or a dark color?

It is a dark color. Relative luminance is 0.1617 and perceived brightness is 50%, so white text on it reaches 4.96:1.

Should I use black or white text on #cd08ad?

White. It scores 4.96:1 against #cd08ad, versus 4.23:1 for black — AA at any size.

What is the complementary color of #cd08ad?

#08CD28 sits directly opposite on the wheel. Softer options are the split-complements #4BCD08 and #08CD8A, which give the same contrast with far less vibration.

What colors go well with #cd08ad?

For interface work: #FAF4F9 as the surface, #EDC0E5 for borders, #9B4B8E for secondary text, #15C804 as an accent and #7B0568 for hover and pressed states. For a palette, the analogous pair #8A08CD and #CD084B stays calm, while #08CD28 is the loudest partner.

What is #cd08ad in CMYK for printing?

cmyk(0%, 96%, 16%, 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 #cd08ad warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD0865; nudged cooler, #A606CF.

Work with #cd08ad in the Color Lab