Skip to content

#5d2eb8

a balanced, vivid violet · cool · closest name: Rebecca Purple

RGB
93, 46, 184
HSL
260°, 60%, 45%
CMYK
50, 75, 0, 28
Luminance
0.0774

At a glance

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

Hex
#5d2eb8
Hue
260°
violet
Saturation
60%
vivid
Lightness
45%
balanced
Brightness
72%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0774
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
8.24:1
Closest name
Rebecca Purple
ΔE2000 5.5
Where it sits
Hue260° of 360°
Saturation60%
Lightness45%
Temperature
Warm ← → Cool72% 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#5d2eb8
RGBrgb(93, 46, 184)
HSLhsl(260, 60%, 45%)
CMYKcmyk(50%, 75%, 0%, 28%)
LABlab(33.4 51.8 -64.9)
LCHlch(33.4 83.1 308.6)
OKLCHoklch(0.450 0.201 291.8)
Decimal6106808
Display P3color(display-p3 0.365 0.180 0.722)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5d2eb8 on white: 8.24:1
AA ✓ pass · AA-large · AAA
Aa
#5d2eb8 on black: 2.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0051BC
deuteranopia · #004CB5
tritanopia · #3F5471

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5d2eb8 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
#EDE9F7
#D8CCEF
#BCA5E9
#9B78DD
#794BD2
#5d2eb8
#5229A3
#422183
#321B5F
#1F113B
Base = 600Lightest = 50 · #F6F4FBDarkest = 950 · #1F113B
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE9F7;
  --brand-200: #D8CCEF;
  --brand-300: #BCA5E9;
  --brand-400: #9B78DD;
  --brand-500: #794BD2;
  --brand-600: #5d2eb8;
  --brand-700: #5229A3;
  --brand-800: #422183;
  --brand-900: #321B5F;
  --brand-950: #1F113B;
  --brand: #5d2eb8;
  --brand-ink: #ffffff;
}

Colors that work with #5d2eb8

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#CFC0ED
Hairlines and dividers
Muted text#664B9B
Captions on the surface
Accent#9BA824
Second voice, not a rival
Dark variant#341A66
Hover, pressed, headers
Light variant#F0EBFA
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 #5d2eb8

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#89B82E
Analogous left#2E44B8
Analogous right#A22EB8
Split-complement 1#B8A22E
Split-complement 2#44B82E
Triadic 1#B85D2E
Triadic 2#2EB85D
Tetradic#B82E44

RGB percentages

Red36.5%
Green18.0%
Blue72.2%

CMYK percentages

Cyan49.5%
Magenta75.0%
Yellow0.0%
Key (black)27.8%

Color previews

#5d2eb8 text on a black background

contrast 2.55:1

Card sample

#5d2eb8 text on a white background

contrast 8.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5d2eb8

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.

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

#5d2eb8, answered

What color is #5d2eb8?

#5d2eb8 is a balanced vivid violet, closest to Rebecca Purple (ΔE2000 5.5). It sits at 260° on the hue wheel with 60% saturation and 45% lightness, which reads as cool.

What is the RGB value of #5d2eb8?

rgb(93, 46, 184) — 93 red, 46 green and 184 blue out of 255, or 36.5% / 18% / 72.2% by channel.

Is #5d2eb8 a light or a dark color?

It is a dark color. Relative luminance is 0.0774 and perceived brightness is 34%, so white text on it reaches 8.24:1.

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

White. It scores 8.24:1 against #5d2eb8, versus 2.55:1 for black — AAA at any size.

What is the complementary color of #5d2eb8?

#89B82E sits directly opposite on the wheel. Softer options are the split-complements #B8A22E and #44B82E, which give the same contrast with far less vibration.

What colors go well with #5d2eb8?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #664B9B for secondary text, #9BA824 as an accent and #341A66 for hover and pressed states. For a palette, the analogous pair #2E44B8 and #A22EB8 stays calm, while #89B82E is the loudest partner.

What is #5d2eb8 in CMYK for printing?

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

Is #5d2eb8 warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #902EB8; nudged cooler, #2C30BA.

Work with #5d2eb8 in the Color Lab