Skip to content

#5d1df4

a balanced, electric violet · cool · closest name: Blue

RGB
93, 29, 244
HSL
258°, 91%, 54%
CMYK
62, 88, 0, 4
Luminance
0.0974

At a glance

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

Hex
#5d1df4
Hue
258°
violet
Saturation
91%
electric
Lightness
54%
balanced
Brightness
96%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0974
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.12:1
Closest name
Blue
ΔE2000 5.3
Where it sits
Hue258° of 360°
Saturation91%
Lightness54%
Temperature
Warm ← → Cool73% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#5d1df4
RGBrgb(93, 29, 244)
HSLhsl(258, 91%, 54%)
CMYKcmyk(62%, 88%, 0%, 4%)
LABlab(37.4 73.6 -93.1)
LCHlch(37.4 118.7 308.3)
OKLCHoklch(0.494 0.276 283.2)
Decimal6102516
Display P3color(display-p3 0.365 0.114 0.957)

Copy-ready code

/* CSS */
color: #5d1df4;
background-color: #5d1df4;
/* Tailwind (arbitrary) */
class="text-[#5d1df4] bg-[#5d1df4]"
/* SCSS */
$brand: #5d1df4;
/* SwiftUI */
Color(red: 0.365, green: 0.114, blue: 0.957)
/* Android */
Color.parseColor("#5d1df4")
/* Flutter */
Color(0xFF5D1DF4)
/* Python / OpenCV (BGR) */
(244, 29, 93)

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#ffffff on #5d1df4 · 7.12:1
Use #ffffffAAA at every size.
Aa
White text · 7.12:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.95:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5d1df4 as text scores 7.12:1 on white and 2.95:1 on black.

Accessibility — WCAG contrast

Aa
#5d1df4 on white: 7.12:1
AA ✓ pass · AA-large · AAA
Aa
#5d1df4 on black: 2.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005EF9
deuteranopia · #0051F1
tritanopia · #006791

Color scale — 50 to 950

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

#F5F2FD
#EBE5FB
#D3C3F9
#B294FA
#8C5FF7
#5d1df4
#4E0BE9
#4109C3
#34089C
#290A70
#190646
Base = 500Lightest = 50 · #F5F2FDDarkest = 950 · #190646
:root {
  --brand-50: #F5F2FD;
  --brand-100: #EBE5FB;
  --brand-200: #D3C3F9;
  --brand-300: #B294FA;
  --brand-400: #8C5FF7;
  --brand-500: #5d1df4;
  --brand-600: #4E0BE9;
  --brand-700: #4109C3;
  --brand-800: #34089C;
  --brand-900: #290A70;
  --brand-950: #190646;
  --brand: #5d1df4;
  --brand-ink: #ffffff;
}

Colors that work with #5d1df4

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F6F4FA
Tinted page background
Border#CDC0ED
Hairlines and dividers
Muted text#634B9B
Captions on the surface
Accent#BDC705
Second voice, not a rival
Dark variant#28067A
Hover, pressed, headers
Light variant#EEE7FE
Selected rows, tints
Dark surface#191424
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 #5d1df4

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#B4F41D
Analogous left#1D48F4
Analogous right#C91DF4
Split-complement 1#F4C91D
Split-complement 2#48F41D
Triadic 1#F45D1D
Triadic 2#1DF45D
Tetradic#F41D48

RGB percentages

Red36.5%
Green11.4%
Blue95.7%

CMYK percentages

Cyan61.9%
Magenta88.1%
Yellow0.0%
Key (black)4.3%

Color previews

#5d1df4 text on a black background

contrast 2.95:1

Card sample

#5d1df4 text on a white background

contrast 7.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(93, 29, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(93, 29, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5d1df4;
background: linear-gradient(135deg, #5d1df4, #EC1DF4);

Monochromatic scale

Palettes built from #5d1df4

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.

#5d1df4 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.

#5d1df4, answered

What color is #5d1df4?

#5d1df4 is a balanced electric violet, closest to Blue (ΔE2000 5.3). It sits at 258° on the hue wheel with 91% saturation and 54% lightness, which reads as cool.

What is the RGB value of #5d1df4?

rgb(93, 29, 244) — 93 red, 29 green and 244 blue out of 255, or 36.5% / 11.4% / 95.7% by channel.

Is #5d1df4 a light or a dark color?

It is a dark color. Relative luminance is 0.0974 and perceived brightness is 39%, so white text on it reaches 7.12:1.

Should I use black or white text on #5d1df4?

White. It scores 7.12:1 against #5d1df4, versus 2.95:1 for black — AAA at any size.

What is the complementary color of #5d1df4?

#B4F41D sits directly opposite on the wheel. Softer options are the split-complements #F4C91D and #48F41D, which give the same contrast with far less vibration.

What colors go well with #5d1df4?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #634B9B for secondary text, #BDC705 as an accent and #28067A for hover and pressed states. For a palette, the analogous pair #1D48F4 and #C91DF4 stays calm, while #B4F41D is the loudest partner.

What is #5d1df4 in CMYK for printing?

cmyk(62%, 88%, 0%, 4%). 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 #5d1df4 warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AC1DF4; nudged cooler, #1B2AF6.

Work with #5d1df4 in the Color Lab