Skip to content

#d751fc

a light, electric violet · neutral · closest name: Magenta

RGB
215, 81, 252
HSL
287°, 97%, 65%
CMYK
15, 68, 0, 1
Luminance
0.2736

At a glance

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

Hex
#d751fc
Hue
287°
violet
Saturation
97%
electric
Lightness
65%
light
Brightness
99%
HSV value
Perceived
62%
weighted brightness
Luminance
0.2736
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.47:1
Closest name
Magenta
ΔE2000 5.9
Where it sits
Hue287° of 360°
Saturation97%
Lightness65%
Temperature
Warm ← → Cool57% 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#d751fc
RGBrgb(215, 81, 252)
HSLhsl(287, 97%, 65%)
CMYKcmyk(15%, 68%, 0%, 1%)
LABlab(59.3 75.0 -61.1)
LCHlch(59.3 96.8 320.8)
OKLCHoklch(0.682 0.257 318.1)
Decimal14111228
Display P3color(display-p3 0.843 0.318 0.988)

Copy-ready code

/* CSS */
color: #d751fc;
background-color: #d751fc;
/* Tailwind (arbitrary) */
class="text-[#d751fc] bg-[#d751fc]"
/* SCSS */
$brand: #d751fc;
/* SwiftUI */
Color(red: 0.843, green: 0.318, blue: 0.988)
/* Android */
Color.parseColor("#d751fc")
/* Flutter */
Color(0xFFD751FC)
/* Python / OpenCV (BGR) */
(252, 81, 215)

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

Accessibility — WCAG contrast

Aa
#d751fc on white: 3.24:1
AA ✗ fail · AA-large · AAA
Aa
#d751fc on black: 6.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0086FF
deuteranopia · #5893F8
tritanopia · #D672A1

Color scale — 50 to 950

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

#FBF1FD
#F7E4FC
#EEC1FB
#E691FD
#d751fc
#CC22FB
#BD04F1
#9E03C9
#7E03A0
#5C0774
#3A0448
Base = 400Lightest = 50 · #FBF1FDDarkest = 950 · #3A0448
:root {
  --brand-50: #FBF1FD;
  --brand-100: #F7E4FC;
  --brand-200: #EEC1FB;
  --brand-300: #E691FD;
  --brand-400: #d751fc;
  --brand-500: #CC22FB;
  --brand-600: #BD04F1;
  --brand-700: #9E03C9;
  --brand-800: #7E03A0;
  --brand-900: #5C0774;
  --brand-950: #3A0448;
  --brand: #d751fc;
  --brand-ink: #000000;
}

Colors that work with #d751fc

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#F9F4FA
Tinted page background
Border#E3C0ED
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#60CC00
Second voice, not a rival
Dark variant#63027D
Hover, pressed, headers
Light variant#F9E6FF
Selected rows, tints
Dark surface#211424
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 #d751fc

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#76FC51
Analogous left#8151FC
Analogous right#FC51CC
Split-complement 1#CCFC51
Split-complement 2#51FC81
Triadic 1#FCD751
Triadic 2#51FCD7
Tetradic#FC8151

RGB percentages

Red84.3%
Green31.8%
Blue98.8%

CMYK percentages

Cyan14.7%
Magenta67.9%
Yellow0.0%
Key (black)1.2%

Color previews

#d751fc text on a black background

contrast 6.47:1

Card sample

#d751fc text on a white background

contrast 3.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(215, 81, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 81, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d751fc;
background: linear-gradient(135deg, #d751fc, #FC51AF);

Monochromatic scale

Palettes built from #d751fc

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.

#d751fc in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#d751fc, answered

What color is #d751fc?

#d751fc is a light electric violet, closest to Magenta (ΔE2000 5.9). It sits at 287° on the hue wheel with 97% saturation and 65% lightness, which reads as neutral.

What is the RGB value of #d751fc?

rgb(215, 81, 252) — 215 red, 81 green and 252 blue out of 255, or 84.3% / 31.8% / 98.8% by channel.

Is #d751fc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2736 and perceived brightness is 62%, so black text on it reaches 6.47:1.

Should I use black or white text on #d751fc?

Black. It scores 6.47:1 against #d751fc, versus 3.24:1 for white — AA at any size.

What is the complementary color of #d751fc?

#76FC51 sits directly opposite on the wheel. Softer options are the split-complements #CCFC51 and #51FC81, which give the same contrast with far less vibration.

What colors go well with #d751fc?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #60CC00 as an accent and #63027D for hover and pressed states. For a palette, the analogous pair #8151FC and #FC51CC stays calm, while #76FC51 is the loudest partner.

What is #d751fc in CMYK for printing?

cmyk(15%, 68%, 0%, 1%). 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 #d751fc warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FC51E2; nudged cooler, #984FFE.

Work with #d751fc in the Color Lab