Skip to content

#c51ddf

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

RGB
197, 29, 223
HSL
292°, 77%, 49%
CMYK
12, 87, 0, 13
Luminance
0.1808

At a glance

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

Hex
#c51ddf
Hue
292°
magenta / pink
Saturation
77%
electric
Lightness
49%
balanced
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1808
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.62:1
Closest name
Medium Orchid
ΔE2000 6.7
Where it sits
Hue292° of 360°
Saturation77%
Lightness49%
Temperature
Warm ← → Cool54% 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#c51ddf
RGBrgb(197, 29, 223)
HSLhsl(292, 77%, 49%)
CMYKcmyk(12%, 87%, 0%, 13%)
LABlab(49.6 81.6 -60.6)
LCHlch(49.6 101.7 323.4)
OKLCHoklch(0.602 0.273 321.4)
Decimal12918239
Display P3color(display-p3 0.773 0.114 0.875)

Copy-ready code

/* CSS */
color: #c51ddf;
background-color: #c51ddf;
/* Tailwind (arbitrary) */
class="text-[#c51ddf] bg-[#c51ddf]"
/* SCSS */
$brand: #c51ddf;
/* SwiftUI */
Color(red: 0.773, green: 0.114, blue: 0.875)
/* Android */
Color.parseColor("#c51ddf")
/* Flutter */
Color(0xFFC51DDF)
/* Python / OpenCV (BGR) */
(223, 29, 197)

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

Accessibility — WCAG contrast

Aa
#c51ddf on white: 4.55:1
AA ✓ pass · AA-large · AAA
Aa
#c51ddf on black: 4.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006BE4
deuteranopia · #3E7BDB
tritanopia · #C74E85

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c51ddf 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
#F6E7F9
#EEC7F4
#E79CF2
#DA6AEC
#CE38E5
#c51ddf
#A017B5
#801390
#5D1269
#3A0B41
Base = 600Lightest = 50 · #FBF3FCDarkest = 950 · #3A0B41
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F6E7F9;
  --brand-200: #EEC7F4;
  --brand-300: #E79CF2;
  --brand-400: #DA6AEC;
  --brand-500: #CE38E5;
  --brand-600: #c51ddf;
  --brand-700: #A017B5;
  --brand-800: #801390;
  --brand-900: #5D1269;
  --brand-950: #3A0B41;
  --brand: #c51ddf;
  --brand-ink: #000000;
}

Colors that work with #c51ddf

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#E7C0ED
Hairlines and dividers
Muted text#904B9B
Captions on the surface
Accent#52B913
Second voice, not a rival
Dark variant#640F71
Hover, pressed, headers
Light variant#F9E8FC
Selected rows, tints
Dark surface#221424
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 #c51ddf

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#37DF1D
Analogous left#641DDF
Analogous right#DF1D98
Split-complement 1#98DF1D
Split-complement 2#1DDF64
Triadic 1#DFC51D
Triadic 2#1DDFC5
Tetradic#DF641D

RGB percentages

Red77.3%
Green11.4%
Blue87.5%

CMYK percentages

Cyan11.7%
Magenta87.0%
Yellow0.0%
Key (black)12.5%

Color previews

#c51ddf text on a black background

contrast 4.62:1

Card sample

#c51ddf text on a white background

contrast 4.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(197, 29, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 29, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c51ddf;
background: linear-gradient(135deg, #c51ddf, #DF1D78);

Monochromatic scale

Palettes built from #c51ddf

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.

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

#c51ddf, answered

What color is #c51ddf?

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

What is the RGB value of #c51ddf?

rgb(197, 29, 223) — 197 red, 29 green and 223 blue out of 255, or 77.3% / 11.4% / 87.5% by channel.

Is #c51ddf a light or a dark color?

It is a mid-tone. Relative luminance is 0.1808 and perceived brightness is 52%, so black text on it reaches 4.62:1.

Should I use black or white text on #c51ddf?

Black. It scores 4.62:1 against #c51ddf, versus 4.55:1 for white — AA at any size.

What is the complementary color of #c51ddf?

#37DF1D sits directly opposite on the wheel. Softer options are the split-complements #98DF1D and #1DDF64, which give the same contrast with far less vibration.

What colors go well with #c51ddf?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #904B9B for secondary text, #52B913 as an accent and #640F71 for hover and pressed states. For a palette, the analogous pair #641DDF and #DF1D98 stays calm, while #37DF1D is the loudest partner.

What is #c51ddf in CMYK for printing?

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

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF1DB2; nudged cooler, #7E1AE1.

Work with #c51ddf in the Color Lab