Skip to content

#8b4dfd

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

RGB
139, 77, 253
HSL
261°, 98%, 65%
CMYK
45, 70, 0, 1
Luminance
0.1789

At a glance

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

Hex
#8b4dfd
Hue
261°
violet
Saturation
98%
electric
Lightness
65%
balanced
Brightness
99%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1789
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.59:1
Closest name
Medium Slate Blue
ΔE2000 7
Where it sits
Hue261° of 360°
Saturation98%
Lightness65%
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#8b4dfd
RGBrgb(139, 77, 253)
HSLhsl(261, 98%, 65%)
CMYKcmyk(45%, 70%, 0%, 1%)
LABlab(49.4 62.5 -78.2)
LCHlch(49.4 100.2 308.6)
OKLCHoklch(0.591 0.245 293.6)
Decimal9129469
Display P3color(display-p3 0.545 0.302 0.992)

Copy-ready code

/* CSS */
color: #8b4dfd;
background-color: #8b4dfd;
/* Tailwind (arbitrary) */
class="text-[#8b4dfd] bg-[#8b4dfd]"
/* SCSS */
$brand: #8b4dfd;
/* SwiftUI */
Color(red: 0.545, green: 0.302, blue: 0.992)
/* Android */
Color.parseColor("#8b4dfd")
/* Flutter */
Color(0xFF8B4DFD)
/* Python / OpenCV (BGR) */
(253, 77, 139)

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 #8b4dfd · 4.59:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.59:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.58:1
AA pass · AA large pass · AAA fail
Reading the other direction: #8b4dfd as text scores 4.59:1 on white and 4.58:1 on black.

Accessibility — WCAG contrast

Aa
#8b4dfd on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#8b4dfd on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0077FF
deuteranopia · #0072FA
tritanopia · #6A7AA0

Color scale — 50 to 950

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

#F6F1FD
#ECE3FC
#D5C1FB
#B790FE
#8b4dfd
#6E21FD
#5703F2
#4802CA
#3A02A1
#2D0674
#1C0449
Base = 400Lightest = 50 · #F6F1FDDarkest = 950 · #1C0449
:root {
  --brand-50: #F6F1FD;
  --brand-100: #ECE3FC;
  --brand-200: #D5C1FB;
  --brand-300: #B790FE;
  --brand-400: #8b4dfd;
  --brand-500: #6E21FD;
  --brand-600: #5703F2;
  --brand-700: #4802CA;
  --brand-800: #3A02A1;
  --brand-900: #2D0674;
  --brand-950: #1C0449;
  --brand: #8b4dfd;
  --brand-ink: #ffffff;
}

Colors that work with #8b4dfd

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#D0C0ED
Hairlines and dividers
Muted text#674B9B
Captions on the surface
Accent#B8CC00
Second voice, not a rival
Dark variant#2D017E
Hover, pressed, headers
Light variant#EFE6FF
Selected rows, tints
Dark surface#1A1424
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 #8b4dfd

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#BFFD4D
Analogous left#4D67FD
Analogous right#E34DFD
Split-complement 1#FDE34D
Split-complement 2#67FD4D
Triadic 1#FD8B4D
Triadic 2#4DFD8B
Tetradic#FD4D67

RGB percentages

Red54.5%
Green30.2%
Blue99.2%

CMYK percentages

Cyan45.1%
Magenta69.6%
Yellow0.0%
Key (black)0.8%

Color previews

#8b4dfd text on a black background

contrast 4.58:1

Card sample

#8b4dfd text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8b4dfd;
Background color
Panel with #8b4dfd background
background-color: #8b4dfd;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(139, 77, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 77, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8b4dfd;
background: linear-gradient(135deg, #8b4dfd, #FD4DFA);

Monochromatic scale

Palettes built from #8b4dfd

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.

#8b4dfd 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.

#8b4dfd, answered

What color is #8b4dfd?

#8b4dfd is a balanced electric violet, closest to Medium Slate Blue (ΔE2000 7). It sits at 261° on the hue wheel with 98% saturation and 65% lightness, which reads as cool.

What is the RGB value of #8b4dfd?

rgb(139, 77, 253) — 139 red, 77 green and 253 blue out of 255, or 54.5% / 30.2% / 99.2% by channel.

Is #8b4dfd a light or a dark color?

It is a dark color. Relative luminance is 0.1789 and perceived brightness is 50%, so white text on it reaches 4.59:1.

Should I use black or white text on #8b4dfd?

White. It scores 4.59:1 against #8b4dfd, versus 4.58:1 for black — AA at any size.

What is the complementary color of #8b4dfd?

#BFFD4D sits directly opposite on the wheel. Softer options are the split-complements #FDE34D and #67FD4D, which give the same contrast with far less vibration.

What colors go well with #8b4dfd?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #674B9B for secondary text, #B8CC00 as an accent and #2D017E for hover and pressed states. For a palette, the analogous pair #4D67FD and #E34DFD stays calm, while #BFFD4D is the loudest partner.

What is #8b4dfd in CMYK for printing?

cmyk(45%, 70%, 0%, 1%). 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 #8b4dfd 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 #CB4DFD; nudged cooler, #4B4EFF.

Work with #8b4dfd in the Color Lab