Skip to content

#8c4df9

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

RGB
140, 77, 249
HSL
262°, 94%, 64%
CMYK
44, 69, 0, 2
Luminance
0.1772

At a glance

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

Hex
#8c4df9
Hue
262°
violet
Saturation
94%
electric
Lightness
64%
balanced
Brightness
98%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1772
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.62:1
Closest name
Medium Slate Blue
ΔE2000 7.1
Where it sits
Hue262° of 360°
Saturation94%
Lightness64%
Temperature
Warm ← → Cool71% 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#8c4df9
RGBrgb(140, 77, 249)
HSLhsl(262, 94%, 64%)
CMYKcmyk(44%, 69%, 0%, 2%)
LABlab(49.2 61.7 -76.3)
LCHlch(49.2 98.2 308.9)
OKLCHoklch(0.589 0.240 294.6)
Decimal9195001
Display P3color(display-p3 0.549 0.302 0.976)

Copy-ready code

/* CSS */
color: #8c4df9;
background-color: #8c4df9;
/* Tailwind (arbitrary) */
class="text-[#8c4df9] bg-[#8c4df9]"
/* SCSS */
$brand: #8c4df9;
/* SwiftUI */
Color(red: 0.549, green: 0.302, blue: 0.976)
/* Android */
Color.parseColor("#8c4df9")
/* Flutter */
Color(0xFF8C4DF9)
/* Python / OpenCV (BGR) */
(249, 77, 140)

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

Accessibility — WCAG contrast

Aa
#8c4df9 on white: 4.62:1
AA ✓ pass · AA-large · AAA
Aa
#8c4df9 on black: 4.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0076FE
deuteranopia · #0072F6
tritanopia · #6D789E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8c4df9 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
#EDE4FB
#D6C2FA
#B992FB
#8c4df9
#7326F8
#5C08ED
#4D07C5
#3D059E
#2F0972
#1D0547
Base = 400Lightest = 50 · #F6F2FDDarkest = 950 · #1D0547
:root {
  --brand-50: #F6F2FD;
  --brand-100: #EDE4FB;
  --brand-200: #D6C2FA;
  --brand-300: #B992FB;
  --brand-400: #8c4df9;
  --brand-500: #7326F8;
  --brand-600: #5C08ED;
  --brand-700: #4D07C5;
  --brand-800: #3D059E;
  --brand-900: #2F0972;
  --brand-950: #1D0547;
  --brand: #8c4df9;
  --brand-ink: #ffffff;
}

Colors that work with #8c4df9

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#D0C0ED
Hairlines and dividers
Muted text#684B9B
Captions on the surface
Accent#B2CA02
Second voice, not a rival
Dark variant#30047B
Hover, pressed, headers
Light variant#EFE6FE
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 #8c4df9

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#BAF94D
Analogous left#4D64F9
Analogous right#E24DF9
Split-complement 1#F9E24D
Split-complement 2#64F94D
Triadic 1#F98C4D
Triadic 2#4DF98C
Tetradic#F94D64

RGB percentages

Red54.9%
Green30.2%
Blue97.6%

CMYK percentages

Cyan43.8%
Magenta69.1%
Yellow0.0%
Key (black)2.4%

Color previews

#8c4df9 text on a black background

contrast 4.54:1

Card sample

#8c4df9 text on a white background

contrast 4.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c4df9

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.

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

#8c4df9, answered

What color is #8c4df9?

#8c4df9 is a balanced electric violet, closest to Medium Slate Blue (ΔE2000 7.1). It sits at 262° on the hue wheel with 94% saturation and 64% lightness, which reads as cool.

What is the RGB value of #8c4df9?

rgb(140, 77, 249) — 140 red, 77 green and 249 blue out of 255, or 54.9% / 30.2% / 97.6% by channel.

Is #8c4df9 a light or a dark color?

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

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

White. It scores 4.62:1 against #8c4df9, versus 4.54:1 for black — AA at any size.

What is the complementary color of #8c4df9?

#BAF94D sits directly opposite on the wheel. Softer options are the split-complements #F9E24D and #64F94D, which give the same contrast with far less vibration.

What colors go well with #8c4df9?

For interface work: #F7F4FA as the surface, #D0C0ED for borders, #684B9B for secondary text, #B2CA02 as an accent and #30047B for hover and pressed states. For a palette, the analogous pair #4D64F9 and #E24DF9 stays calm, while #BAF94D is the loudest partner.

What is #8c4df9 in CMYK for printing?

cmyk(44%, 69%, 0%, 2%). 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 #8c4df9 warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CB4DF9; nudged cooler, #4B4BFB.

Work with #8c4df9 in the Color Lab