Skip to content

#8b2dfd

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

RGB
139, 45, 253
HSL
267°, 98%, 58%
CMYK
45, 82, 0, 1
Luminance
0.1446

At a glance

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

Hex
#8b2dfd
Hue
267°
violet
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1446
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.40:1
Closest name
Blue Violet
ΔE2000 3.6
Where it sits
Hue267° of 360°
Saturation98%
Lightness58%
Temperature
Warm ← → Cool68% 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#8b2dfd
RGBrgb(139, 45, 253)
HSLhsl(267, 98%, 58%)
CMYKcmyk(45%, 82%, 0%, 1%)
LABlab(44.9 75.4 -85.6)
LCHlch(44.9 114.0 311.4)
OKLCHoklch(0.560 0.274 296.4)
Decimal9121277
Display P3color(display-p3 0.545 0.176 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8b2dfd on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#8b2dfd on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BFF
deuteranopia · #0067F9
tritanopia · #6B6C99

Color scale — 50 to 950

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

#F7F1FD
#EFE3FC
#DBC1FB
#C290FE
#A358FD
#8b2dfd
#6F02F2
#5C02CA
#4A02A2
#380674
#230449
Base = 500Lightest = 50 · #F7F1FDDarkest = 950 · #230449
:root {
  --brand-50: #F7F1FD;
  --brand-100: #EFE3FC;
  --brand-200: #DBC1FB;
  --brand-300: #C290FE;
  --brand-400: #A358FD;
  --brand-500: #8b2dfd;
  --brand-600: #6F02F2;
  --brand-700: #5C02CA;
  --brand-800: #4A02A2;
  --brand-900: #380674;
  --brand-950: #230449;
  --brand: #8b2dfd;
  --brand-ink: #ffffff;
}

Colors that work with #8b2dfd

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#F7F4FA
Tinted page background
Border#D4C0ED
Hairlines and dividers
Muted text#6F4B9B
Captions on the surface
Accent#A3CC00
Second voice, not a rival
Dark variant#3A017E
Hover, pressed, headers
Light variant#F1E6FF
Selected rows, tints
Dark surface#1B1424
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 #8b2dfd

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
  • 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#9FFD2D
Analogous left#2D37FD
Analogous right#F32DFD
Split-complement 1#FDF32D
Split-complement 2#37FD2D
Triadic 1#FD8B2D
Triadic 2#2DFD8B
Tetradic#FD2D37

RGB percentages

Red54.5%
Green17.6%
Blue99.2%

CMYK percentages

Cyan45.1%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#8b2dfd text on a black background

contrast 3.89:1

Card sample

#8b2dfd text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8b2dfd

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.

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

#8b2dfd, answered

What color is #8b2dfd?

#8b2dfd is a balanced electric violet, closest to Blue Violet (ΔE2000 3.6). It sits at 267° on the hue wheel with 98% saturation and 58% lightness, which reads as cool.

What is the RGB value of #8b2dfd?

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

Is #8b2dfd a light or a dark color?

It is a dark color. Relative luminance is 0.1446 and perceived brightness is 47%, so white text on it reaches 5.40:1.

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

White. It scores 5.40:1 against #8b2dfd, versus 3.89:1 for black — AA at any size.

What is the complementary color of #8b2dfd?

#9FFD2D sits directly opposite on the wheel. Softer options are the split-complements #FDF32D and #37FD2D, which give the same contrast with far less vibration.

What colors go well with #8b2dfd?

For interface work: #F7F4FA as the surface, #D4C0ED for borders, #6F4B9B for secondary text, #A3CC00 as an accent and #3A017E for hover and pressed states. For a palette, the analogous pair #2D37FD and #F32DFD stays calm, while #9FFD2D is the loudest partner.

What is #8b2dfd in CMYK for printing?

cmyk(45%, 82%, 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 #8b2dfd warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D72DFD; nudged cooler, #3D2BFF.

Work with #8b2dfd in the Color Lab