Skip to content

#5d2dcd

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

RGB
93, 45, 205
HSL
258°, 64%, 49%
CMYK
55, 78, 0, 20
Luminance
0.0861

At a glance

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

Hex
#5d2dcd
Hue
258°
violet
Saturation
64%
vivid
Lightness
49%
balanced
Brightness
80%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0861
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.71:1
Closest name
Blue
ΔE2000 7.3
Where it sits
Hue258° of 360°
Saturation64%
Lightness49%
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#5d2dcd
RGBrgb(93, 45, 205)
HSLhsl(258, 64%, 49%)
CMYKcmyk(55%, 78%, 0%, 20%)
LABlab(35.2 58.0 -74.3)
LCHlch(35.2 94.2 307.9)
OKLCHoklch(0.468 0.225 287.9)
Decimal6106573
Display P3color(display-p3 0.365 0.176 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d2dcd on white: 7.71:1
AA ✓ pass · AA-large · AAA
Aa
#5d2dcd on black: 2.72:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056D1
deuteranopia · #004FCA
tritanopia · #2D5C7D

Color scale — 50 to 950

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

#F6F4FB
#EDE8F7
#D6CBF1
#B9A3EB
#9575E1
#7247D7
#5d2dcd
#4C25A7
#3D1D86
#2F1961
#1D103D
Base = 600Lightest = 50 · #F6F4FBDarkest = 950 · #1D103D
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE8F7;
  --brand-200: #D6CBF1;
  --brand-300: #B9A3EB;
  --brand-400: #9575E1;
  --brand-500: #7247D7;
  --brand-600: #5d2dcd;
  --brand-700: #4C25A7;
  --brand-800: #3D1D86;
  --brand-900: #2F1961;
  --brand-950: #1D103D;
  --brand: #5d2dcd;
  --brand-ink: #ffffff;
}

Colors that work with #5d2dcd

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#A4AB21
Second voice, not a rival
Dark variant#2F1769
Hover, pressed, headers
Light variant#EFEAFA
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 #5d2dcd

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#9DCD2D
Analogous left#2D4DCD
Analogous right#AD2DCD
Split-complement 1#CDAD2D
Split-complement 2#4DCD2D
Triadic 1#CD5D2D
Triadic 2#2DCD5D
Tetradic#CD2D4D

RGB percentages

Red36.5%
Green17.6%
Blue80.4%

CMYK percentages

Cyan54.6%
Magenta78.0%
Yellow0.0%
Key (black)19.6%

Color previews

#5d2dcd text on a black background

contrast 2.72:1

Card sample

#5d2dcd text on a white background

contrast 7.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2dcd

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.

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

#5d2dcd, answered

What color is #5d2dcd?

#5d2dcd is a balanced vivid violet, closest to Blue (ΔE2000 7.3). It sits at 258° on the hue wheel with 64% saturation and 49% lightness, which reads as cool.

What is the RGB value of #5d2dcd?

rgb(93, 45, 205) — 93 red, 45 green and 205 blue out of 255, or 36.5% / 17.6% / 80.4% by channel.

Is #5d2dcd a light or a dark color?

It is a dark color. Relative luminance is 0.0861 and perceived brightness is 36%, so white text on it reaches 7.71:1.

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

White. It scores 7.71:1 against #5d2dcd, versus 2.72:1 for black — AAA at any size.

What is the complementary color of #5d2dcd?

#9DCD2D sits directly opposite on the wheel. Softer options are the split-complements #CDAD2D and #4DCD2D, which give the same contrast with far less vibration.

What colors go well with #5d2dcd?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #634B9B for secondary text, #A4AB21 as an accent and #2F1769 for hover and pressed states. For a palette, the analogous pair #2D4DCD and #AD2DCD stays calm, while #9DCD2D is the loudest partner.

What is #5d2dcd in CMYK for printing?

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

Is #5d2dcd 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 #982DCD; nudged cooler, #2A35CF.

Work with #5d2dcd in the Color Lab