Skip to content

#5d2fe2

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

RGB
93, 47, 226
HSL
255°, 76%, 54%
CMYK
59, 79, 0, 11
Luminance
0.0985

At a glance

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

Hex
#5d2fe2
Hue
255°
violet
Saturation
76%
electric
Lightness
54%
balanced
Brightness
89%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0985
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.07:1
Closest name
Blue Violet
ΔE2000 6.5
Where it sits
Hue255° of 360°
Saturation76%
Lightness54%
Temperature
Warm ← → Cool75% 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#5d2fe2
RGBrgb(93, 47, 226)
HSLhsl(255, 76%, 54%)
CMYKcmyk(59%, 79%, 0%, 11%)
LABlab(37.6 62.7 -82.5)
LCHlch(37.6 103.7 307.2)
OKLCHoklch(0.490 0.246 284.5)
Decimal6107106
Display P3color(display-p3 0.365 0.184 0.886)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d2fe2 on white: 7.07:1
AA ✓ pass · AA-large · AAA
Aa
#5d2fe2 on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DE7
deuteranopia · #0053DF
tritanopia · #006589

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5d2fe2 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
#EBE7F9
#D3C8F4
#B29DF1
#8C6BEA
#5d2fe2
#4D1ED7
#4119B3
#34148F
#291368
#190C41
Base = 500Lightest = 50 · #F5F3FCDarkest = 950 · #190C41
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EBE7F9;
  --brand-200: #D3C8F4;
  --brand-300: #B29DF1;
  --brand-400: #8C6BEA;
  --brand-500: #5d2fe2;
  --brand-600: #4D1ED7;
  --brand-700: #4119B3;
  --brand-800: #34148F;
  --brand-900: #291368;
  --brand-950: #190C41;
  --brand: #5d2fe2;
  --brand-ink: #ffffff;
}

Colors that work with #5d2fe2

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#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#B6B715
Second voice, not a rival
Dark variant#281070
Hover, pressed, headers
Light variant#EEE9FC
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 #5d2fe2

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#B4E22F
Analogous left#2F5AE2
Analogous right#B62FE2
Split-complement 1#E2B62F
Split-complement 2#5AE22F
Triadic 1#E25D2F
Triadic 2#2FE25D
Tetradic#E22F5A

RGB percentages

Red36.5%
Green18.4%
Blue88.6%

CMYK percentages

Cyan58.8%
Magenta79.2%
Yellow0.0%
Key (black)11.4%

Color previews

#5d2fe2 text on a black background

contrast 2.97:1

Card sample

#5d2fe2 text on a white background

contrast 7.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2fe2

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.

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

#5d2fe2, answered

What color is #5d2fe2?

#5d2fe2 is a balanced electric violet, closest to Blue Violet (ΔE2000 6.5). It sits at 255° on the hue wheel with 76% saturation and 54% lightness, which reads as cool.

What is the RGB value of #5d2fe2?

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

Is #5d2fe2 a light or a dark color?

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

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

White. It scores 7.07:1 against #5d2fe2, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #5d2fe2?

#B4E22F sits directly opposite on the wheel. Softer options are the split-complements #E2B62F and #5AE22F, which give the same contrast with far less vibration.

What colors go well with #5d2fe2?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #B6B715 as an accent and #281070 for hover and pressed states. For a palette, the analogous pair #2F5AE2 and #B62FE2 stays calm, while #B4E22F is the loudest partner.

What is #5d2fe2 in CMYK for printing?

cmyk(59%, 79%, 0%, 11%). 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 #5d2fe2 warm or cool?

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

Work with #5d2fe2 in the Color Lab