Skip to content

#d93dfb

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

RGB
217, 61, 251
HSL
289°, 96%, 61%
CMYK
14, 76, 0, 2
Luminance
0.2505

At a glance

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

Hex
#d93dfb
Hue
289°
violet
Saturation
96%
electric
Lightness
61%
balanced
Brightness
98%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2505
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.01:1
Closest name
Magenta
ΔE2000 5.3
Where it sits
Hue289° of 360°
Saturation96%
Lightness61%
Temperature
Warm ← → Cool56% 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#d93dfb
RGBrgb(217, 61, 251)
HSLhsl(289, 96%, 61%)
CMYKcmyk(14%, 76%, 0%, 2%)
LABlab(57.1 82.1 -64.1)
LCHlch(57.1 104.1 322.0)
OKLCHoklch(0.667 0.278 319.6)
Decimal14237179
Display P3color(display-p3 0.851 0.239 0.984)

Copy-ready code

/* CSS */
color: #d93dfb;
background-color: #d93dfb;
/* Tailwind (arbitrary) */
class="text-[#d93dfb] bg-[#d93dfb]"
/* SCSS */
$brand: #d93dfb;
/* SwiftUI */
Color(red: 0.851, green: 0.239, blue: 0.984)
/* Android */
Color.parseColor("#d93dfb")
/* Flutter */
Color(0xFFD93DFB)
/* Python / OpenCV (BGR) */
(251, 61, 217)

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

Accessibility — WCAG contrast

Aa
#d93dfb on white: 3.49:1
AA ✗ fail · AA-large · AAA
Aa
#d93dfb on black: 6.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007FFF
deuteranopia · #4D8EF7
tritanopia · #D9659B

Color scale — 50 to 950

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

#FBF1FD
#F7E4FC
#F0C1FA
#EA91FD
#DF5AFC
#d93dfb
#C605F0
#A504C8
#8403A0
#600773
#3C0448
Base = 500Lightest = 50 · #FBF1FDDarkest = 950 · #3C0448
:root {
  --brand-50: #FBF1FD;
  --brand-100: #F7E4FC;
  --brand-200: #F0C1FA;
  --brand-300: #EA91FD;
  --brand-400: #DF5AFC;
  --brand-500: #d93dfb;
  --brand-600: #C605F0;
  --brand-700: #A504C8;
  --brand-800: #8403A0;
  --brand-900: #600773;
  --brand-950: #3C0448;
  --brand: #d93dfb;
  --brand-ink: #000000;
}

Colors that work with #d93dfb

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#E5C0ED
Hairlines and dividers
Muted text#8D4B9B
Captions on the surface
Accent#58CC00
Second voice, not a rival
Dark variant#67037D
Hover, pressed, headers
Light variant#FAE6FE
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 #d93dfb

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#5FFB3D
Analogous left#7A3DFB
Analogous right#FB3DBE
Split-complement 1#BEFB3D
Split-complement 2#3DFB7A
Triadic 1#FBD93D
Triadic 2#3DFBD9
Tetradic#FB7A3D

RGB percentages

Red85.1%
Green23.9%
Blue98.4%

CMYK percentages

Cyan13.5%
Magenta75.7%
Yellow0.0%
Key (black)1.6%

Color previews

#d93dfb text on a black background

contrast 6.01:1

Card sample

#d93dfb text on a white background

contrast 3.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(217, 61, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(217, 61, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d93dfb;
background: linear-gradient(135deg, #d93dfb, #FB3D9E);

Monochromatic scale

Palettes built from #d93dfb

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.

#d93dfb 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
ButtonsLinksFocus statesCharts
Print note

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

#d93dfb, answered

What color is #d93dfb?

#d93dfb is a balanced electric violet, closest to Magenta (ΔE2000 5.3). It sits at 289° on the hue wheel with 96% saturation and 61% lightness, which reads as neutral.

What is the RGB value of #d93dfb?

rgb(217, 61, 251) — 217 red, 61 green and 251 blue out of 255, or 85.1% / 23.9% / 98.4% by channel.

Is #d93dfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2505 and perceived brightness is 60%, so black text on it reaches 6.01:1.

Should I use black or white text on #d93dfb?

Black. It scores 6.01:1 against #d93dfb, versus 3.49:1 for white — AA at any size.

What is the complementary color of #d93dfb?

#5FFB3D sits directly opposite on the wheel. Softer options are the split-complements #BEFB3D and #3DFB7A, which give the same contrast with far less vibration.

What colors go well with #d93dfb?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8D4B9B for secondary text, #58CC00 as an accent and #67037D for hover and pressed states. For a palette, the analogous pair #7A3DFB and #FB3DBE stays calm, while #5FFB3D is the loudest partner.

What is #d93dfb in CMYK for printing?

cmyk(14%, 76%, 0%, 2%). 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 #d93dfb warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FB3DD7; nudged cooler, #933BFD.

Work with #d93dfb in the Color Lab