Skip to content

#8f4fe2

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

RGB
143, 79, 226
HSL
266°, 72%, 60%
CMYK
37, 65, 0, 11
Luminance
0.1692

At a glance

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

Hex
#8f4fe2
Hue
266°
violet
Saturation
72%
vivid
Lightness
60%
balanced
Brightness
89%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1692
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.79:1
Closest name
Blue Violet
ΔE2000 6.7
Where it sits
Hue266° of 360°
Saturation72%
Lightness60%
Temperature
Warm ← → Cool69% 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#8f4fe2
RGBrgb(143, 79, 226)
HSLhsl(266, 72%, 60%)
CMYKcmyk(37%, 65%, 0%, 11%)
LABlab(48.2 55.5 -65.0)
LCHlch(48.2 85.5 310.5)
OKLCHoklch(0.577 0.213 299.7)
Decimal9392098
Display P3color(display-p3 0.561 0.310 0.886)

Copy-ready code

/* CSS */
color: #8f4fe2;
background-color: #8f4fe2;
/* Tailwind (arbitrary) */
class="text-[#8f4fe2] bg-[#8f4fe2]"
/* SCSS */
$brand: #8f4fe2;
/* SwiftUI */
Color(red: 0.561, green: 0.310, blue: 0.886)
/* Android */
Color.parseColor("#8f4fe2")
/* Flutter */
Color(0xFF8F4FE2)
/* Python / OpenCV (BGR) */
(226, 79, 143)

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

Accessibility — WCAG contrast

Aa
#8f4fe2 on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#8f4fe2 on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0072E7
deuteranopia · #0071DF
tritanopia · #7C7092

Color scale — 50 to 950

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

#F7F3FC
#EFE7F8
#DBC9F3
#C29FEF
#A36FE7
#8f4fe2
#6F23D2
#5C1DAF
#4A178C
#381566
#230D3F
Base = 500Lightest = 50 · #F7F3FCDarkest = 950 · #230D3F
:root {
  --brand-50: #F7F3FC;
  --brand-100: #EFE7F8;
  --brand-200: #DBC9F3;
  --brand-300: #C29FEF;
  --brand-400: #A36FE7;
  --brand-500: #8f4fe2;
  --brand-600: #6F23D2;
  --brand-700: #5C1DAF;
  --brand-800: #4A178C;
  --brand-900: #381566;
  --brand-950: #230D3F;
  --brand: #8f4fe2;
  --brand-ink: #ffffff;
}

Colors that work with #8f4fe2

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#D3C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#96B319
Second voice, not a rival
Dark variant#3A126D
Hover, pressed, headers
Light variant#F1E9FB
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 #8f4fe2

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#A2E24F
Analogous left#4F59E2
Analogous right#D84FE2
Split-complement 1#E2D84F
Split-complement 2#59E24F
Triadic 1#E28F4F
Triadic 2#4FE28F
Tetradic#E24F59

RGB percentages

Red56.1%
Green31.0%
Blue88.6%

CMYK percentages

Cyan36.7%
Magenta65.0%
Yellow0.0%
Key (black)11.4%

Color previews

#8f4fe2 text on a black background

contrast 4.38:1

Card sample

#8f4fe2 text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 79, 226, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 79, 226, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f4fe2;
background: linear-gradient(135deg, #8f4fe2, #E24FD3);

Monochromatic scale

Palettes built from #8f4fe2

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.

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

#8f4fe2, answered

What color is #8f4fe2?

#8f4fe2 is a balanced vivid violet, closest to Blue Violet (ΔE2000 6.7). It sits at 266° on the hue wheel with 72% saturation and 60% lightness, which reads as cool.

What is the RGB value of #8f4fe2?

rgb(143, 79, 226) — 143 red, 79 green and 226 blue out of 255, or 56.1% / 31% / 88.6% by channel.

Is #8f4fe2 a light or a dark color?

It is a dark color. Relative luminance is 0.1692 and perceived brightness is 49%, so white text on it reaches 4.79:1.

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

White. It scores 4.79:1 against #8f4fe2, versus 4.38:1 for black — AA at any size.

What is the complementary color of #8f4fe2?

#A2E24F sits directly opposite on the wheel. Softer options are the split-complements #E2D84F and #59E24F, which give the same contrast with far less vibration.

What colors go well with #8f4fe2?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6E4B9B for secondary text, #96B319 as an accent and #3A126D for hover and pressed states. For a palette, the analogous pair #4F59E2 and #D84FE2 stays calm, while #A2E24F is the loudest partner.

What is #8f4fe2 in CMYK for printing?

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

Is #8f4fe2 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C54FE2; nudged cooler, #574DE4.

Work with #8f4fe2 in the Color Lab