Skip to content

#db5dfb

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

RGB
219, 93, 251
HSL
288°, 95%, 68%
CMYK
13, 63, 0, 2
Luminance
0.2985

At a glance

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

Hex
#db5dfb
Hue
288°
violet
Saturation
95%
electric
Lightness
68%
light
Brightness
98%
HSV value
Perceived
64%
weighted brightness
Luminance
0.2985
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.97:1
Closest name
Magenta
ΔE2000 6.3
Where it sits
Hue288° of 360°
Saturation95%
Lightness68%
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#db5dfb
RGBrgb(219, 93, 251)
HSLhsl(288, 95%, 68%)
CMYKcmyk(13%, 63%, 0%, 2%)
LABlab(61.5 70.9 -57.0)
LCHlch(61.5 91.0 321.2)
OKLCHoklch(0.699 0.243 318.9)
Decimal14376443
Display P3color(display-p3 0.859 0.365 0.984)

Copy-ready code

/* CSS */
color: #db5dfb;
background-color: #db5dfb;
/* Tailwind (arbitrary) */
class="text-[#db5dfb] bg-[#db5dfb]"
/* SCSS */
$brand: #db5dfb;
/* SwiftUI */
Color(red: 0.859, green: 0.365, blue: 0.984)
/* Android */
Color.parseColor("#db5dfb")
/* Flutter */
Color(0xFFDB5DFB)
/* Python / OpenCV (BGR) */
(251, 93, 219)

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

Accessibility — WCAG contrast

Aa
#db5dfb on white: 3.01:1
AA ✗ fail · AA-large · AAA
Aa
#db5dfb on black: 6.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2C8CFF
deuteranopia · #6799F7
tritanopia · #DB78A4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #db5dfb 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
#EFC2FA
#E791FC
#db5dfb
#CE24FA
#C006EF
#A005C7
#80049F
#5D0873
#3A0548
Base = 400Lightest = 50 · #FBF1FDDarkest = 950 · #3A0548
:root {
  --brand-50: #FBF1FD;
  --brand-100: #F7E4FC;
  --brand-200: #EFC2FA;
  --brand-300: #E791FC;
  --brand-400: #db5dfb;
  --brand-500: #CE24FA;
  --brand-600: #C006EF;
  --brand-700: #A005C7;
  --brand-800: #80049F;
  --brand-900: #5D0873;
  --brand-950: #3A0548;
  --brand: #db5dfb;
  --brand-ink: #000000;
}

Colors that work with #db5dfb

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#E4C0ED
Hairlines and dividers
Muted text#8B4B9B
Captions on the surface
Accent#5CCB01
Second voice, not a rival
Dark variant#64037C
Hover, pressed, headers
Light variant#F9E6FE
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 #db5dfb

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#7DFB5D
Analogous left#8C5DFB
Analogous right#FB5DCC
Split-complement 1#CCFB5D
Split-complement 2#5DFB8C
Triadic 1#FBDB5D
Triadic 2#5DFBDB
Tetradic#FB8C5D

RGB percentages

Red85.9%
Green36.5%
Blue98.4%

CMYK percentages

Cyan12.7%
Magenta62.9%
Yellow0.0%
Key (black)1.6%

Color previews

#db5dfb text on a black background

contrast 6.97:1

Card sample

#db5dfb text on a white background

contrast 3.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #db5dfb

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.

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

#db5dfb, answered

What color is #db5dfb?

#db5dfb is a light electric violet, closest to Magenta (ΔE2000 6.3). It sits at 288° on the hue wheel with 95% saturation and 68% lightness, which reads as neutral.

What is the RGB value of #db5dfb?

rgb(219, 93, 251) — 219 red, 93 green and 251 blue out of 255, or 85.9% / 36.5% / 98.4% by channel.

Is #db5dfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2985 and perceived brightness is 64%, so black text on it reaches 6.97:1.

Should I use black or white text on #db5dfb?

Black. It scores 6.97:1 against #db5dfb, versus 3.01:1 for white — AA at any size.

What is the complementary color of #db5dfb?

#7DFB5D sits directly opposite on the wheel. Softer options are the split-complements #CCFB5D and #5DFB8C, which give the same contrast with far less vibration.

What colors go well with #db5dfb?

For interface work: #F9F4FA as the surface, #E4C0ED for borders, #8B4B9B for secondary text, #5CCB01 as an accent and #64037C for hover and pressed states. For a palette, the analogous pair #8C5DFB and #FB5DCC stays calm, while #7DFB5D is the loudest partner.

What is #db5dfb in CMYK for printing?

cmyk(13%, 63%, 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 #db5dfb 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 #FB5DE1; nudged cooler, #A15CFD.

Work with #db5dfb in the Color Lab