Skip to content

#cb2da5

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

RGB
203, 45, 165
HSL
314°, 64%, 49%
CMYK
0, 78, 19, 20
Luminance
0.1729

At a glance

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

Hex
#cb2da5
Hue
314°
magenta / pink
Saturation
64%
vivid
Lightness
49%
balanced
Brightness
80%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1729
WCAG relative
Temperature
Neutral
42/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.71:1
Closest name
Medium Violet Red
ΔE2000 6.2
Where it sits
Hue314° of 360°
Saturation64%
Lightness49%
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#cb2da5
RGBrgb(203, 45, 165)
HSLhsl(314, 64%, 49%)
CMYKcmyk(0%, 78%, 19%, 20%)
LABlab(48.6 70.6 -28.4)
LCHlch(48.6 76.1 338.1)
OKLCHoklch(0.587 0.224 340.0)
Decimal13315493
Display P3color(display-p3 0.796 0.176 0.647)

Copy-ready code

/* CSS */
color: #cb2da5;
background-color: #cb2da5;
/* Tailwind (arbitrary) */
class="text-[#cb2da5] bg-[#cb2da5]"
/* SCSS */
$brand: #cb2da5;
/* SwiftUI */
Color(red: 0.796, green: 0.176, blue: 0.647)
/* Android */
Color.parseColor("#cb2da5")
/* Flutter */
Color(0xFFCB2DA5)
/* Python / OpenCV (BGR) */
(165, 45, 203)

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 #cb2da5 · 4.71:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.71:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.46:1
AA fail · AA large pass · AAA fail
Reading the other direction: #cb2da5 as text scores 4.71:1 on white and 4.46:1 on black.

Accessibility — WCAG contrast

Aa
#cb2da5 on white: 4.71:1
AA ✓ pass · AA-large · AAA
Aa
#cb2da5 on black: 4.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3964A8
deuteranopia · #6E7CA1
tritanopia · #D73367

Color scale — 50 to 950

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

#FBF4F9
#F7E8F4
#F0CBE8
#EBA3D9
#E075C7
#D647B4
#cb2da5
#A72588
#861E6D
#611950
#3D1032
Base = 600Lightest = 50 · #FBF4F9Darkest = 950 · #3D1032
:root {
  --brand-50: #FBF4F9;
  --brand-100: #F7E8F4;
  --brand-200: #F0CBE8;
  --brand-300: #EBA3D9;
  --brand-400: #E075C7;
  --brand-500: #D647B4;
  --brand-600: #cb2da5;
  --brand-700: #A72588;
  --brand-800: #861E6D;
  --brand-900: #611950;
  --brand-950: #3D1032;
  --brand: #cb2da5;
  --brand-ink: #ffffff;
}

Colors that work with #cb2da5

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#9B4B88
Captions on the surface
Accent#23AB21
Second voice, not a rival
Dark variant#681755
Hover, pressed, headers
Light variant#FAEAF6
Selected rows, tints
Dark surface#241420
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 #cb2da5

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#2DCB53
Analogous left#A22DCB
Analogous right#CB2D56
Split-complement 1#56CB2D
Split-complement 2#2DCBA2
Triadic 1#A5CB2D
Triadic 2#2DA5CB
Tetradic#CBA22D

RGB percentages

Red79.6%
Green17.6%
Blue64.7%

CMYK percentages

Cyan0.0%
Magenta77.8%
Yellow18.7%
Key (black)20.4%

Color previews

#cb2da5 text on a black background

contrast 4.46:1

Card sample

#cb2da5 text on a white background

contrast 4.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 45, 165, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 45, 165, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cb2da5;
background: linear-gradient(135deg, #cb2da5, #CB2D3C);

Monochromatic scale

Palettes built from #cb2da5

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.

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

#cb2da5, answered

What color is #cb2da5?

#cb2da5 is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 6.2). It sits at 314° on the hue wheel with 64% saturation and 49% lightness, which reads as neutral.

What is the RGB value of #cb2da5?

rgb(203, 45, 165) — 203 red, 45 green and 165 blue out of 255, or 79.6% / 17.6% / 64.7% by channel.

Is #cb2da5 a light or a dark color?

It is a dark color. Relative luminance is 0.1729 and perceived brightness is 51%, so white text on it reaches 4.71:1.

Should I use black or white text on #cb2da5?

White. It scores 4.71:1 against #cb2da5, versus 4.46:1 for black — AA at any size.

What is the complementary color of #cb2da5?

#2DCB53 sits directly opposite on the wheel. Softer options are the split-complements #56CB2D and #2DCBA2, which give the same contrast with far less vibration.

What colors go well with #cb2da5?

For interface work: #FAF4F9 as the surface, #EDC0E2 for borders, #9B4B88 for secondary text, #23AB21 as an accent and #681755 for hover and pressed states. For a palette, the analogous pair #A22DCB and #CB2D56 stays calm, while #2DCB53 is the loudest partner.

What is #cb2da5 in CMYK for printing?

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

Is #cb2da5 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 #CB2D6B; nudged cooler, #B92BCD.

Work with #cb2da5 in the Color Lab