Skip to content

#8b5af2

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

RGB
139, 90, 242
HSL
259°, 85%, 65%
CMYK
43, 63, 0, 5
Luminance
0.1921

At a glance

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

Hex
#8b5af2
Hue
259°
violet
Saturation
85%
electric
Lightness
65%
light
Brightness
95%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1921
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.84:1
Closest name
Medium Slate Blue
ΔE2000 4.6
Where it sits
Hue259° of 360°
Saturation85%
Lightness65%
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#8b5af2
RGBrgb(139, 90, 242)
HSLhsl(259, 85%, 65%)
CMYKcmyk(43%, 63%, 0%, 5%)
LABlab(50.9 53.2 -69.5)
LCHlch(50.9 87.5 307.4)
OKLCHoklch(0.600 0.217 293.7)
Decimal9132786
Display P3color(display-p3 0.545 0.353 0.949)

Copy-ready code

/* CSS */
color: #8b5af2;
background-color: #8b5af2;
/* Tailwind (arbitrary) */
class="text-[#8b5af2] bg-[#8b5af2]"
/* SCSS */
$brand: #8b5af2;
/* SwiftUI */
Color(red: 0.545, green: 0.353, blue: 0.949)
/* Android */
Color.parseColor("#8b5af2")
/* Flutter */
Color(0xFF8B5AF2)
/* Python / OpenCV (BGR) */
(242, 90, 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#000000 on #8b5af2 · 4.84:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.34:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.84:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #8b5af2 as text scores 4.34:1 on white and 4.84:1 on black.

Accessibility — WCAG contrast

Aa
#8b5af2 on white: 4.34:1
AA ✗ fail · AA-large · AAA
Aa
#8b5af2 on black: 4.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007BF7
deuteranopia · #0077EF
tritanopia · #6F7D9E

Color scale — 50 to 950

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

#F6F2FD
#ECE5FA
#D5C5F7
#B697F7
#8b5af2
#6D2FEF
#5512E3
#470FBD
#390C97
#2C0D6D
#1C0844
Base = 400Lightest = 50 · #F6F2FDDarkest = 950 · #1C0844
:root {
  --brand-50: #F6F2FD;
  --brand-100: #ECE5FA;
  --brand-200: #D5C5F7;
  --brand-300: #B697F7;
  --brand-400: #8b5af2;
  --brand-500: #6D2FEF;
  --brand-600: #5512E3;
  --brand-700: #470FBD;
  --brand-800: #390C97;
  --brand-900: #2C0D6D;
  --brand-950: #1C0844;
  --brand: #8b5af2;
  --brand-ink: #000000;
}

Colors that work with #8b5af2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6F4FA
Tinted page background
Border#CEC0ED
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#B4C20A
Second voice, not a rival
Dark variant#2C0976
Hover, pressed, headers
Light variant#EEE7FD
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 #8b5af2

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#C1F25A
Analogous left#5A75F2
Analogous right#D75AF2
Split-complement 1#F2D75A
Split-complement 2#75F25A
Triadic 1#F28B5A
Triadic 2#5AF28B
Tetradic#F25A75

RGB percentages

Red54.5%
Green35.3%
Blue94.9%

CMYK percentages

Cyan42.6%
Magenta62.8%
Yellow0.0%
Key (black)5.1%

Color previews

#8b5af2 text on a black background

contrast 4.84:1

Card sample

#8b5af2 text on a white background

contrast 4.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8b5af2

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.

#8b5af2 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#8b5af2, answered

What color is #8b5af2?

#8b5af2 is a light electric violet, closest to Medium Slate Blue (ΔE2000 4.6). It sits at 259° on the hue wheel with 85% saturation and 65% lightness, which reads as cool.

What is the RGB value of #8b5af2?

rgb(139, 90, 242) — 139 red, 90 green and 242 blue out of 255, or 54.5% / 35.3% / 94.9% by channel.

Is #8b5af2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1921 and perceived brightness is 51%, so black text on it reaches 4.84:1.

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

Black. It scores 4.84:1 against #8b5af2, versus 4.34:1 for white — AA at any size.

What is the complementary color of #8b5af2?

#C1F25A sits directly opposite on the wheel. Softer options are the split-complements #F2D75A and #75F25A, which give the same contrast with far less vibration.

What colors go well with #8b5af2?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #644B9B for secondary text, #B4C20A as an accent and #2C0976 for hover and pressed states. For a palette, the analogous pair #5A75F2 and #D75AF2 stays calm, while #C1F25A is the loudest partner.

What is #8b5af2 in CMYK for printing?

cmyk(43%, 63%, 0%, 5%). 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 #8b5af2 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 #C35AF2; nudged cooler, #585FF4.

Work with #8b5af2 in the Color Lab