Skip to content

#cd06ba

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

RGB
205, 6, 186
HSL
306°, 94%, 41%
CMYK
0, 97, 9, 20
Luminance
0.1665

At a glance

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

Hex
#cd06ba
Hue
306°
magenta / pink
Saturation
94%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1665
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.85:1
Closest name
Medium Orchid
ΔE2000 9.2
Where it sits
Hue306° of 360°
Saturation94%
Lightness41%
Temperature
Warm ← → Cool47% 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#cd06ba
RGBrgb(205, 6, 186)
HSLhsl(306, 94%, 41%)
CMYKcmyk(0%, 97%, 9%, 20%)
LABlab(47.8 80.2 -42.0)
LCHlch(47.8 90.5 332.3)
OKLCHoklch(0.585 0.260 333.6)
Decimal13436602
Display P3color(display-p3 0.804 0.024 0.729)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd06ba on white: 4.85:1
AA ✓ pass · AA-large · AAA
Aa
#cd06ba on black: 4.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061BE
deuteranopia · #5F7AB6
tritanopia · #D72D6D

Color scale — 50 to 950

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

#FDF2FC
#FBE4F9
#FAC2F4
#FC92F2
#FA5BEB
#F925E5
#EE07D8
#cd06ba
#9F0590
#720868
#470541
Base = 700Lightest = 50 · #FDF2FCDarkest = 950 · #470541
:root {
  --brand-50: #FDF2FC;
  --brand-100: #FBE4F9;
  --brand-200: #FAC2F4;
  --brand-300: #FC92F2;
  --brand-400: #FA5BEB;
  --brand-500: #F925E5;
  --brand-600: #EE07D8;
  --brand-700: #cd06ba;
  --brand-800: #9F0590;
  --brand-900: #720868;
  --brand-950: #470541;
  --brand: #cd06ba;
  --brand-ink: #ffffff;
}

Colors that work with #cd06ba

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#EDC0E8
Hairlines and dividers
Muted text#9B4B93
Captions on the surface
Accent#21CA02
Second voice, not a rival
Dark variant#7C0470
Hover, pressed, headers
Light variant#FEE6FC
Selected rows, tints
Dark surface#241423
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 #cd06ba

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#06CD19
Analogous left#7C06CD
Analogous right#CD0657
Split-complement 1#57CD06
Split-complement 2#06CD7C
Triadic 1#BACD06
Triadic 2#06BACD
Tetradic#CD7C06

RGB percentages

Red80.4%
Green2.4%
Blue72.9%

CMYK percentages

Cyan0.0%
Magenta97.1%
Yellow9.3%
Key (black)19.6%

Color previews

#cd06ba text on a black background

contrast 4.33:1

Card sample

#cd06ba text on a white background

contrast 4.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd06ba

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.

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

#cd06ba, answered

What color is #cd06ba?

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

What is the RGB value of #cd06ba?

rgb(205, 6, 186) — 205 red, 6 green and 186 blue out of 255, or 80.4% / 2.4% / 72.9% by channel.

Is #cd06ba a light or a dark color?

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

Should I use black or white text on #cd06ba?

White. It scores 4.85:1 against #cd06ba, versus 4.33:1 for black — AA at any size.

What is the complementary color of #cd06ba?

#06CD19 sits directly opposite on the wheel. Softer options are the split-complements #57CD06 and #06CD7C, which give the same contrast with far less vibration.

What colors go well with #cd06ba?

For interface work: #FAF4FA as the surface, #EDC0E8 for borders, #9B4B93 for secondary text, #21CA02 as an accent and #7C0470 for hover and pressed states. For a palette, the analogous pair #7C06CD and #CD0657 stays calm, while #06CD19 is the loudest partner.

What is #cd06ba in CMYK for printing?

cmyk(0%, 97%, 9%, 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 #cd06ba warm or cool?

Neutral — it scores 47 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD0671; nudged cooler, #9804CF.

Work with #cd06ba in the Color Lab