Skip to content

#cd40c7

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

RGB
205, 64, 199
HSL
303°, 59%, 53%
CMYK
0, 69, 3, 20
Luminance
0.2077

At a glance

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

Hex
#cd40c7
Hue
303°
magenta / pink
Saturation
59%
vivid
Lightness
53%
balanced
Brightness
80%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2077
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.15:1
Closest name
Medium Orchid
ΔE2000 4.8
Where it sits
Hue303° of 360°
Saturation59%
Lightness53%
Temperature
Warm ← → Cool49% 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#cd40c7
RGBrgb(205, 64, 199)
HSLhsl(303, 59%, 53%)
CMYKcmyk(0%, 69%, 3%, 20%)
LABlab(52.7 70.0 -41.9)
LCHlch(52.7 81.6 329.1)
OKLCHoklch(0.622 0.229 329.7)
Decimal13451463
Display P3color(display-p3 0.804 0.251 0.780)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd40c7 on white: 4.07:1
AA ✗ fail · AA-large · AAA
Aa
#cd40c7 on black: 5.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3072CB
deuteranopia · #6884C3
tritanopia · #D4527F

Color scale — 50 to 950

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

#FBF4FB
#F7E9F6
#EFCDED
#E8A6E5
#DC7AD8
#cd40c7
#C233BC
#A22A9C
#81227D
#5E1C5B
#3B1239
Base = 500Lightest = 50 · #FBF4FBDarkest = 950 · #3B1239
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F7E9F6;
  --brand-200: #EFCDED;
  --brand-300: #E8A6E5;
  --brand-400: #DC7AD8;
  --brand-500: #cd40c7;
  --brand-600: #C233BC;
  --brand-700: #A22A9C;
  --brand-800: #81227D;
  --brand-900: #5E1C5B;
  --brand-950: #3B1239;
  --brand: #cd40c7;
  --brand-ink: #000000;
}

Colors that work with #cd40c7

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4FA
Tinted page background
Border#EDC0EB
Hairlines and dividers
Muted text#9B4B97
Captions on the surface
Accent#40A626
Second voice, not a rival
Dark variant#651A62
Hover, pressed, headers
Light variant#FAEBF9
Selected rows, tints
Dark surface#241424
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 #cd40c7

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

Works well for
  • Headings from 24px up 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
  • Small text on white — under 4.5:1
  • 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#40CD46
Analogous left#8D40CD
Analogous right#CD4080
Split-complement 1#80CD40
Split-complement 2#40CD8D
Triadic 1#C7CD40
Triadic 2#40C7CD
Tetradic#CD8D40

RGB percentages

Red80.4%
Green25.1%
Blue78.0%

CMYK percentages

Cyan0.0%
Magenta68.8%
Yellow2.9%
Key (black)19.6%

Color previews

#cd40c7 text on a black background

contrast 5.15:1

Card sample

#cd40c7 text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd40c7

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.

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

#cd40c7, answered

What color is #cd40c7?

#cd40c7 is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 4.8). It sits at 303° on the hue wheel with 59% saturation and 53% lightness, which reads as neutral.

What is the RGB value of #cd40c7?

rgb(205, 64, 199) — 205 red, 64 green and 199 blue out of 255, or 80.4% / 25.1% / 78% by channel.

Is #cd40c7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2077 and perceived brightness is 55%, so black text on it reaches 5.15:1.

Should I use black or white text on #cd40c7?

Black. It scores 5.15:1 against #cd40c7, versus 4.07:1 for white — AA at any size.

What is the complementary color of #cd40c7?

#40CD46 sits directly opposite on the wheel. Softer options are the split-complements #80CD40 and #40CD8D, which give the same contrast with far less vibration.

What colors go well with #cd40c7?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B97 for secondary text, #40A626 as an accent and #651A62 for hover and pressed states. For a palette, the analogous pair #8D40CD and #CD4080 stays calm, while #40CD46 is the loudest partner.

What is #cd40c7 in CMYK for printing?

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

Is #cd40c7 warm or cool?

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

Work with #cd40c7 in the Color Lab