Skip to content

#c71cd5

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

RGB
199, 28, 213
HSL
296°, 77%, 47%
CMYK
7, 87, 0, 17
Luminance
0.1778

At a glance

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

Hex
#c71cd5
Hue
296°
magenta / pink
Saturation
77%
electric
Lightness
47%
balanced
Brightness
84%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1778
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.61:1
Closest name
Medium Orchid
ΔE2000 6.8
Where it sits
Hue296° of 360°
Saturation77%
Lightness47%
Temperature
Warm ← → Cool53% 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#c71cd5
RGBrgb(199, 28, 213)
HSLhsl(296, 77%, 47%)
CMYKcmyk(7%, 87%, 0%, 17%)
LABlab(49.2 80.5 -55.5)
LCHlch(49.2 97.8 325.4)
OKLCHoklch(0.598 0.267 324.5)
Decimal13049045
Display P3color(display-p3 0.780 0.110 0.835)

Copy-ready code

/* CSS */
color: #c71cd5;
background-color: #c71cd5;
/* Tailwind (arbitrary) */
class="text-[#c71cd5] bg-[#c71cd5]"
/* SCSS */
$brand: #c71cd5;
/* SwiftUI */
Color(red: 0.780, green: 0.110, blue: 0.835)
/* Android */
Color.parseColor("#c71cd5")
/* Flutter */
Color(0xFFC71CD5)
/* Python / OpenCV (BGR) */
(213, 28, 199)

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

Accessibility — WCAG contrast

Aa
#c71cd5 on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#c71cd5 on black: 4.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0069D9
deuteranopia · #4A7BD1
tritanopia · #CB487F

Color scale — 50 to 950

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

#FBF3FC
#F7E7F9
#F1C7F4
#EC9CF2
#E26AEB
#D839E5
#c71cd5
#A918B4
#871390
#621268
#3D0B41
Base = 600Lightest = 50 · #FBF3FCDarkest = 950 · #3D0B41
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F7E7F9;
  --brand-200: #F1C7F4;
  --brand-300: #EC9CF2;
  --brand-400: #E26AEB;
  --brand-500: #D839E5;
  --brand-600: #c71cd5;
  --brand-700: #A918B4;
  --brand-800: #871390;
  --brand-900: #621268;
  --brand-950: #3D0B41;
  --brand: #c71cd5;
  --brand-ink: #ffffff;
}

Colors that work with #c71cd5

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#FAF4FA
Tinted page background
Border#E9C0ED
Hairlines and dividers
Muted text#954B9B
Captions on the surface
Accent#4AB913
Second voice, not a rival
Dark variant#690F71
Hover, pressed, headers
Light variant#FBE8FC
Selected rows, tints
Dark surface#231424
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 #c71cd5

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#2AD51C
Analogous left#6B1CD5
Analogous right#D51C87
Split-complement 1#87D51C
Split-complement 2#1CD56B
Triadic 1#D5C71C
Triadic 2#1CD5C7
Tetradic#D56B1C

RGB percentages

Red78.0%
Green11.0%
Blue83.5%

CMYK percentages

Cyan6.6%
Magenta86.9%
Yellow0.0%
Key (black)16.5%

Color previews

#c71cd5 text on a black background

contrast 4.56:1

Card sample

#c71cd5 text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c71cd5

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.

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

#c71cd5, answered

What color is #c71cd5?

#c71cd5 is a balanced electric magenta / pink, closest to Medium Orchid (ΔE2000 6.8). It sits at 296° on the hue wheel with 77% saturation and 47% lightness, which reads as neutral.

What is the RGB value of #c71cd5?

rgb(199, 28, 213) — 199 red, 28 green and 213 blue out of 255, or 78% / 11% / 83.5% by channel.

Is #c71cd5 a light or a dark color?

It is a dark color. Relative luminance is 0.1778 and perceived brightness is 52%, so white text on it reaches 4.61:1.

Should I use black or white text on #c71cd5?

White. It scores 4.61:1 against #c71cd5, versus 4.56:1 for black — AA at any size.

What is the complementary color of #c71cd5?

#2AD51C sits directly opposite on the wheel. Softer options are the split-complements #87D51C and #1CD56B, which give the same contrast with far less vibration.

What colors go well with #c71cd5?

For interface work: #FAF4FA as the surface, #E9C0ED for borders, #954B9B for secondary text, #4AB913 as an accent and #690F71 for hover and pressed states. For a palette, the analogous pair #6B1CD5 and #D51C87 stays calm, while #2AD51C is the loudest partner.

What is #c71cd5 in CMYK for printing?

cmyk(7%, 87%, 0%, 17%). 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 #c71cd5 warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D51C9F; nudged cooler, #841AD8.

Work with #c71cd5 in the Color Lab