Skip to content

#cd22ab

a balanced, vivid magenta / pink · neutral · closest name: Medium Violet Red

RGB
205, 34, 171
HSL
312°, 72%, 47%
CMYK
0, 83, 17, 20
Luminance
0.1706

At a glance

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

Hex
#cd22ab
Hue
312°
magenta / pink
Saturation
72%
vivid
Lightness
47%
balanced
Brightness
80%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1706
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.76:1
Closest name
Medium Violet Red
ΔE2000 7
Where it sits
Hue312° of 360°
Saturation72%
Lightness47%
Temperature
Warm ← → Cool43% 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#cd22ab
RGBrgb(205, 34, 171)
HSLhsl(312, 72%, 47%)
CMYKcmyk(0%, 83%, 17%, 20%)
LABlab(48.3 74.4 -32.4)
LCHlch(48.3 81.2 336.5)
OKLCHoklch(0.587 0.238 338.3)
Decimal13443755
Display P3color(display-p3 0.804 0.133 0.671)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd22ab on white: 4.76:1
AA ✓ pass · AA-large · AAA
Aa
#cd22ab on black: 4.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2D62AE
deuteranopia · #6A7CA7
tritanopia · #D92E68

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cd22ab is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF3FA
#F8E7F5
#F3C9EA
#EF9FDF
#E76FCF
#DF3FBF
#cd22ab
#AF1D92
#8C1775
#651555
#3F0D35
Base = 600Lightest = 50 · #FCF3FADarkest = 950 · #3F0D35
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F5;
  --brand-200: #F3C9EA;
  --brand-300: #EF9FDF;
  --brand-400: #E76FCF;
  --brand-500: #DF3FBF;
  --brand-600: #cd22ab;
  --brand-700: #AF1D92;
  --brand-800: #8C1775;
  --brand-900: #651555;
  --brand-950: #3F0D35;
  --brand: #cd22ab;
  --brand-ink: #ffffff;
}

Colors that work with #cd22ab

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#EDC0E4
Hairlines and dividers
Muted text#9B4B8B
Captions on the surface
Accent#21B319
Second voice, not a rival
Dark variant#6D125B
Hover, pressed, headers
Light variant#FBE9F8
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 #cd22ab

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#22CD44
Analogous left#9A22CD
Analogous right#CD2256
Split-complement 1#56CD22
Split-complement 2#22CD9A
Triadic 1#ABCD22
Triadic 2#22ABCD
Tetradic#CD9A22

RGB percentages

Red80.4%
Green13.3%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta83.4%
Yellow16.6%
Key (black)19.6%

Color previews

#cd22ab text on a black background

contrast 4.41:1

Card sample

#cd22ab text on a white background

contrast 4.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd22ab

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.

#cd22ab 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

Converts to four-color process without much drama. Proof it anyway.

#cd22ab, answered

What color is #cd22ab?

#cd22ab is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 7). It sits at 312° on the hue wheel with 72% saturation and 47% lightness, which reads as neutral.

What is the RGB value of #cd22ab?

rgb(205, 34, 171) — 205 red, 34 green and 171 blue out of 255, or 80.4% / 13.3% / 67.1% by channel.

Is #cd22ab a light or a dark color?

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

Should I use black or white text on #cd22ab?

White. It scores 4.76:1 against #cd22ab, versus 4.41:1 for black — AA at any size.

What is the complementary color of #cd22ab?

#22CD44 sits directly opposite on the wheel. Softer options are the split-complements #56CD22 and #22CD9A, which give the same contrast with far less vibration.

What colors go well with #cd22ab?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8B for secondary text, #21B319 as an accent and #6D125B for hover and pressed states. For a palette, the analogous pair #9A22CD and #CD2256 stays calm, while #22CD44 is the loudest partner.

What is #cd22ab in CMYK for printing?

cmyk(0%, 83%, 17%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cd22ab warm or cool?

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

Work with #cd22ab in the Color Lab