Skip to content

#5d2fda

a balanced, vivid violet · cool · closest name: Blue Violet

RGB
93, 47, 218
HSL
256°, 70%, 52%
CMYK
57, 78, 0, 15
Luminance
0.0942

At a glance

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

Hex
#5d2fda
Hue
256°
violet
Saturation
70%
vivid
Lightness
52%
balanced
Brightness
85%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0942
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.28:1
Closest name
Blue Violet
ΔE2000 6.7
Where it sits
Hue256° of 360°
Saturation70%
Lightness52%
Temperature
Warm ← → Cool74% 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#5d2fda
RGBrgb(93, 47, 218)
HSLhsl(256, 70%, 52%)
CMYKcmyk(57%, 78%, 0%, 15%)
LABlab(36.8 60.6 -79.3)
LCHlch(36.8 99.8 307.4)
OKLCHoklch(0.482 0.237 285.7)
Decimal6107098
Display P3color(display-p3 0.365 0.184 0.855)

Copy-ready code

/* CSS */
color: #5d2fda;
background-color: #5d2fda;
/* Tailwind (arbitrary) */
class="text-[#5d2fda] bg-[#5d2fda]"
/* SCSS */
$brand: #5d2fda;
/* SwiftUI */
Color(red: 0.365, green: 0.184, blue: 0.855)
/* Android */
Color.parseColor("#5d2fda")
/* Flutter */
Color(0xFF5D2FDA)
/* Python / OpenCV (BGR) */
(218, 47, 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 #5d2fda · 7.28:1
Use #ffffffAAA at every size.
Aa
White text · 7.28:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.88:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5d2fda as text scores 7.28:1 on white and 2.88:1 on black.

Accessibility — WCAG contrast

Aa
#5d2fda on white: 7.28:1
AA ✓ pass · AA-large · AAA
Aa
#5d2fda on black: 2.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005BDF
deuteranopia · #0051D7
tritanopia · #196285

Color scale — 50 to 950

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

#F5F3FC
#ECE7F8
#D4C9F2
#B5A0EE
#9070E6
#5d2fda
#5325D0
#451FAD
#37198B
#2B1665
#1B0E3F
Base = 500Lightest = 50 · #F5F3FCDarkest = 950 · #1B0E3F
:root {
  --brand-50: #F5F3FC;
  --brand-100: #ECE7F8;
  --brand-200: #D4C9F2;
  --brand-300: #B5A0EE;
  --brand-400: #9070E6;
  --brand-500: #5d2fda;
  --brand-600: #5325D0;
  --brand-700: #451FAD;
  --brand-800: #37198B;
  --brand-900: #2B1665;
  --brand-950: #1B0E3F;
  --brand: #5d2fda;
  --brand-ink: #ffffff;
}

Colors that work with #5d2fda

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#CCC0ED
Hairlines and dividers
Muted text#604B9B
Captions on the surface
Accent#AFB11B
Second voice, not a rival
Dark variant#2B136C
Hover, pressed, headers
Light variant#EEE9FB
Selected rows, tints
Dark surface#181424
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 #5d2fda

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#ACDA2F
Analogous left#2F57DA
Analogous right#B22FDA
Split-complement 1#DAB22F
Split-complement 2#57DA2F
Triadic 1#DA5D2F
Triadic 2#2FDA5D
Tetradic#DA2F57

RGB percentages

Red36.5%
Green18.4%
Blue85.5%

CMYK percentages

Cyan57.3%
Magenta78.4%
Yellow0.0%
Key (black)14.5%

Color previews

#5d2fda text on a black background

contrast 2.88:1

Card sample

#5d2fda text on a white background

contrast 7.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2fda

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.

#5d2fda 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

Converts to four-color process without much drama. Proof it anyway.

#5d2fda, answered

What color is #5d2fda?

#5d2fda is a balanced vivid violet, closest to Blue Violet (ΔE2000 6.7). It sits at 256° on the hue wheel with 70% saturation and 52% lightness, which reads as cool.

What is the RGB value of #5d2fda?

rgb(93, 47, 218) — 93 red, 47 green and 218 blue out of 255, or 36.5% / 18.4% / 85.5% by channel.

Is #5d2fda a light or a dark color?

It is a dark color. Relative luminance is 0.0942 and perceived brightness is 38%, so white text on it reaches 7.28:1.

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

White. It scores 7.28:1 against #5d2fda, versus 2.88:1 for black — AAA at any size.

What is the complementary color of #5d2fda?

#ACDA2F sits directly opposite on the wheel. Softer options are the split-complements #DAB22F and #57DA2F, which give the same contrast with far less vibration.

What colors go well with #5d2fda?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #604B9B for secondary text, #AFB11B as an accent and #2B136C for hover and pressed states. For a palette, the analogous pair #2F57DA and #B22FDA stays calm, while #ACDA2F is the loudest partner.

What is #5d2fda in CMYK for printing?

cmyk(57%, 78%, 0%, 15%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #5d2fda warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9C2FDA; nudged cooler, #2D3EDC.

Work with #5d2fda in the Color Lab