Skip to content

#d512cf

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

RGB
213, 18, 207
HSL
302°, 84%, 45%
CMYK
0, 92, 3, 17
Luminance
0.1908

At a glance

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

Hex
#d512cf
Hue
302°
magenta / pink
Saturation
84%
electric
Lightness
45%
balanced
Brightness
84%
HSV value
Perceived
54%
weighted brightness
Luminance
0.1908
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.82:1
Closest name
Medium Orchid
ΔE2000 7
Where it sits
Hue302° of 360°
Saturation84%
Lightness45%
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#d512cf
RGBrgb(213, 18, 207)
HSLhsl(302, 84%, 45%)
CMYKcmyk(0%, 92%, 3%, 17%)
LABlab(50.8 83.4 -49.4)
LCHlch(50.8 97.0 329.4)
OKLCHoklch(0.613 0.273 329.9)
Decimal13963983
Display P3color(display-p3 0.835 0.071 0.812)

Copy-ready code

/* CSS */
color: #d512cf;
background-color: #d512cf;
/* Tailwind (arbitrary) */
class="text-[#d512cf] bg-[#d512cf]"
/* SCSS */
$brand: #d512cf;
/* SwiftUI */
Color(red: 0.835, green: 0.071, blue: 0.812)
/* Android */
Color.parseColor("#d512cf")
/* Flutter */
Color(0xFFD512CF)
/* Python / OpenCV (BGR) */
(207, 18, 213)

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

Accessibility — WCAG contrast

Aa
#d512cf on white: 4.36:1
AA ✗ fail · AA-large · AAA
Aa
#d512cf on black: 4.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006AD3
deuteranopia · #5C81CB
tritanopia · #DD3C7B

Color scale — 50 to 950

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

#FCF2FC
#FAE6F9
#F7C5F5
#F698F3
#F264EE
#ED30E8
#d512cf
#BC10B7
#960D92
#6D0E6A
#440942
Base = 600Lightest = 50 · #FCF2FCDarkest = 950 · #440942
:root {
  --brand-50: #FCF2FC;
  --brand-100: #FAE6F9;
  --brand-200: #F7C5F5;
  --brand-300: #F698F3;
  --brand-400: #F264EE;
  --brand-500: #ED30E8;
  --brand-600: #d512cf;
  --brand-700: #BC10B7;
  --brand-800: #960D92;
  --brand-900: #6D0E6A;
  --brand-950: #440942;
  --brand: #d512cf;
  --brand-ink: #000000;
}

Colors that work with #d512cf

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#9B4B99
Captions on the surface
Accent#33C00C
Second voice, not a rival
Dark variant#760A72
Hover, pressed, headers
Light variant#FDE7FC
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 #d512cf

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#12D518
Analogous left#7912D5
Analogous right#D5126E
Split-complement 1#6ED512
Split-complement 2#12D579
Triadic 1#CFD512
Triadic 2#12CFD5
Tetradic#D57912

RGB percentages

Red83.5%
Green7.1%
Blue81.2%

CMYK percentages

Cyan0.0%
Magenta91.5%
Yellow2.8%
Key (black)16.5%

Color previews

#d512cf text on a black background

contrast 4.82:1

Card sample

#d512cf text on a white background

contrast 4.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d512cf

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.

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

#d512cf, answered

What color is #d512cf?

#d512cf is a balanced electric magenta / pink, closest to Medium Orchid (ΔE2000 7). It sits at 302° on the hue wheel with 84% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #d512cf?

rgb(213, 18, 207) — 213 red, 18 green and 207 blue out of 255, or 83.5% / 7.1% / 81.2% by channel.

Is #d512cf a light or a dark color?

It is a mid-tone. Relative luminance is 0.1908 and perceived brightness is 54%, so black text on it reaches 4.82:1.

Should I use black or white text on #d512cf?

Black. It scores 4.82:1 against #d512cf, versus 4.36:1 for white — AA at any size.

What is the complementary color of #d512cf?

#12D518 sits directly opposite on the wheel. Softer options are the split-complements #6ED512 and #12D579, which give the same contrast with far less vibration.

What colors go well with #d512cf?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B99 for secondary text, #33C00C as an accent and #760A72 for hover and pressed states. For a palette, the analogous pair #7912D5 and #D5126E stays calm, while #12D518 is the loudest partner.

What is #d512cf in CMYK for printing?

cmyk(0%, 92%, 3%, 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 #d512cf 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 #D51288; nudged cooler, #9410D7.

Work with #d512cf in the Color Lab