Skip to content

#cd0ba1

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

RGB
205, 11, 161
HSL
314°, 90%, 42%
CMYK
0, 95, 22, 20
Luminance
0.1579

At a glance

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

Hex
#cd0ba1
Hue
314°
magenta / pink
Saturation
90%
electric
Lightness
42%
dark
Brightness
80%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1579
WCAG relative
Temperature
Neutral
42/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.05:1
Closest name
Medium Violet Red
ΔE2000 5.2
Where it sits
Hue314° of 360°
Saturation90%
Lightness42%
Temperature
Warm ← → Cool42% 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#cd0ba1
RGBrgb(205, 11, 161)
HSLhsl(314, 90%, 42%)
CMYKcmyk(0%, 95%, 22%, 20%)
LABlab(46.7 76.6 -29.0)
LCHlch(46.7 81.9 339.3)
OKLCHoklch(0.573 0.244 341.2)
Decimal13437857
Display P3color(display-p3 0.804 0.043 0.631)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd0ba1 on white: 5.05:1
AA ✓ pass · AA-large · AAA
Aa
#cd0ba1 on black: 4.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2A5CA4
deuteranopia · #6B799D
tritanopia · #DA165F

Color scale — 50 to 950

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

#FDF2FA
#FBE5F6
#F8C3EC
#F995E2
#F65FD4
#F42AC6
#E80CB6
#cd0ba1
#9B087A
#700B59
#460738
Base = 700Lightest = 50 · #FDF2FADarkest = 950 · #460738
:root {
  --brand-50: #FDF2FA;
  --brand-100: #FBE5F6;
  --brand-200: #F8C3EC;
  --brand-300: #F995E2;
  --brand-400: #F65FD4;
  --brand-500: #F42AC6;
  --brand-600: #E80CB6;
  --brand-700: #cd0ba1;
  --brand-800: #9B087A;
  --brand-900: #700B59;
  --brand-950: #460738;
  --brand: #cd0ba1;
  --brand-ink: #ffffff;
}

Colors that work with #cd0ba1

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#EDC0E2
Hairlines and dividers
Muted text#9B4B89
Captions on the surface
Accent#0AC507
Second voice, not a rival
Dark variant#79075F
Hover, pressed, headers
Light variant#FEE7F9
Selected rows, tints
Dark surface#241421
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 #cd0ba1

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#0BCD37
Analogous left#980BCD
Analogous right#CD0B40
Split-complement 1#40CD0B
Split-complement 2#0BCD98
Triadic 1#A1CD0B
Triadic 2#0BA1CD
Tetradic#CD980B

RGB percentages

Red80.4%
Green4.3%
Blue63.1%

CMYK percentages

Cyan0.0%
Magenta94.6%
Yellow21.5%
Key (black)19.6%

Color previews

#cd0ba1 text on a black background

contrast 4.16:1

Card sample

#cd0ba1 text on a white background

contrast 5.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd0ba1

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.

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

#cd0ba1, answered

What color is #cd0ba1?

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

What is the RGB value of #cd0ba1?

rgb(205, 11, 161) — 205 red, 11 green and 161 blue out of 255, or 80.4% / 4.3% / 63.1% by channel.

Is #cd0ba1 a light or a dark color?

It is a dark color. Relative luminance is 0.1579 and perceived brightness is 49%, so white text on it reaches 5.05:1.

Should I use black or white text on #cd0ba1?

White. It scores 5.05:1 against #cd0ba1, versus 4.16:1 for black — AA at any size.

What is the complementary color of #cd0ba1?

#0BCD37 sits directly opposite on the wheel. Softer options are the split-complements #40CD0B and #0BCD98, which give the same contrast with far less vibration.

What colors go well with #cd0ba1?

For interface work: #FAF4F9 as the surface, #EDC0E2 for borders, #9B4B89 for secondary text, #0AC507 as an accent and #79075F for hover and pressed states. For a palette, the analogous pair #980BCD and #CD0B40 stays calm, while #0BCD37 is the loudest partner.

What is #cd0ba1 in CMYK for printing?

cmyk(0%, 95%, 22%, 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 #cd0ba1 warm or cool?

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

Work with #cd0ba1 in the Color Lab