Skip to content

#cd339f

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

RGB
205, 51, 159
HSL
318°, 61%, 50%
CMYK
0, 75, 22, 20
Luminance
0.1785

At a glance

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

Hex
#cd339f
Hue
318°
magenta / pink
Saturation
61%
vivid
Lightness
50%
balanced
Brightness
80%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1785
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.60:1
Closest name
Medium Violet Red
ΔE2000 5.6
Where it sits
Hue318° of 360°
Saturation61%
Lightness50%
Temperature
Warm ← → Cool40% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#cd339f
RGBrgb(205, 51, 159)
HSLhsl(318, 61%, 50%)
CMYKcmyk(0%, 75%, 22%, 20%)
LABlab(49.3 68.5 -23.8)
LCHlch(49.3 72.5 340.9)
OKLCHoklch(0.592 0.216 342.9)
Decimal13448095
Display P3color(display-p3 0.804 0.200 0.624)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd339f on white: 4.60:1
AA ✓ pass · AA-large · AAA
Aa
#cd339f on black: 4.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4365A2
deuteranopia · #747E9C
tritanopia · #DA3465

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cd339f 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
#F7E8F3
#F0CCE5
#E9A5D5
#DE78BF
#D34BAA
#cd339f
#A4287F
#832066
#5F1B4B
#3C112F
Base = 600Lightest = 50 · #FBF4F9Darkest = 950 · #3C112F
:root {
  --brand-50: #FBF4F9;
  --brand-100: #F7E8F3;
  --brand-200: #F0CCE5;
  --brand-300: #E9A5D5;
  --brand-400: #DE78BF;
  --brand-500: #D34BAA;
  --brand-600: #cd339f;
  --brand-700: #A4287F;
  --brand-800: #832066;
  --brand-900: #5F1B4B;
  --brand-950: #3C112F;
  --brand: #cd339f;
  --brand-ink: #ffffff;
}

Colors that work with #cd339f

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#EDC0DF
Hairlines and dividers
Muted text#9B4B83
Captions on the surface
Accent#24A82A
Second voice, not a rival
Dark variant#66194F
Hover, pressed, headers
Light variant#FAEBF5
Selected rows, tints
Dark surface#24141F
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 #cd339f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#33CD61
Analogous left#AE33CD
Analogous right#CD3352
Split-complement 1#52CD33
Split-complement 2#33CDAE
Triadic 1#9FCD33
Triadic 2#339FCD
Tetradic#CDAE33

RGB percentages

Red80.4%
Green20.0%
Blue62.4%

CMYK percentages

Cyan0.0%
Magenta75.1%
Yellow22.4%
Key (black)19.6%

Color previews

#cd339f text on a black background

contrast 4.57:1

Card sample

#cd339f text on a white background

contrast 4.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd339f

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.

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

#cd339f, answered

What color is #cd339f?

#cd339f is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 5.6). It sits at 318° on the hue wheel with 61% saturation and 50% lightness, which reads as warm.

What is the RGB value of #cd339f?

rgb(205, 51, 159) — 205 red, 51 green and 159 blue out of 255, or 80.4% / 20% / 62.4% by channel.

Is #cd339f a light or a dark color?

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

Should I use black or white text on #cd339f?

White. It scores 4.60:1 against #cd339f, versus 4.57:1 for black — AA at any size.

What is the complementary color of #cd339f?

#33CD61 sits directly opposite on the wheel. Softer options are the split-complements #52CD33 and #33CDAE, which give the same contrast with far less vibration.

What colors go well with #cd339f?

For interface work: #FAF4F9 as the surface, #EDC0DF for borders, #9B4B83 for secondary text, #24A82A as an accent and #66194F for hover and pressed states. For a palette, the analogous pair #AE33CD and #CD3352 stays calm, while #33CD61 is the loudest partner.

What is #cd339f in CMYK for printing?

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

Is #cd339f warm or cool?

Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD3367; nudged cooler, #C531D0.

Work with #cd339f in the Color Lab