Skip to content

#8f17eb

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

RGB
143, 23, 235
HSL
274°, 84%, 51%
CMYK
39, 90, 0, 8
Luminance
0.1245

At a glance

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

Hex
#8f17eb
Hue
274°
violet
Saturation
84%
electric
Lightness
51%
balanced
Brightness
92%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1245
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.02:1
Closest name
Blue Violet
ΔE2000 1.7
Where it sits
Hue274° of 360°
Saturation84%
Lightness51%
Temperature
Warm ← → Cool64% 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#8f17eb
RGBrgb(143, 23, 235)
HSLhsl(274, 84%, 51%)
CMYKcmyk(39%, 90%, 0%, 8%)
LABlab(41.9 77.5 -80.3)
LCHlch(41.9 111.6 314.0)
OKLCHoklch(0.536 0.271 302.2)
Decimal9377771
Display P3color(display-p3 0.561 0.090 0.922)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f17eb on white: 6.02:1
AA ✓ pass · AA-large · AAA
Aa
#8f17eb on black: 3.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061F0
deuteranopia · #0062E7
tritanopia · #7A5D8B

Color scale — 50 to 950

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

#F8F2FC
#F1E6FA
#E1C5F6
#CD98F6
#B464F2
#9B30ED
#8f17eb
#7110BC
#5B0D96
#440E6D
#2A0944
Base = 600Lightest = 50 · #F8F2FCDarkest = 950 · #2A0944
:root {
  --brand-50: #F8F2FC;
  --brand-100: #F1E6FA;
  --brand-200: #E1C5F6;
  --brand-300: #CD98F6;
  --brand-400: #B464F2;
  --brand-500: #9B30ED;
  --brand-600: #8f17eb;
  --brand-700: #7110BC;
  --brand-800: #5B0D96;
  --brand-900: #440E6D;
  --brand-950: #2A0944;
  --brand: #8f17eb;
  --brand-ink: #ffffff;
}

Colors that work with #8f17eb

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#F8F4FA
Tinted page background
Border#D9C0ED
Hairlines and dividers
Muted text#784B9B
Captions on the surface
Accent#87C00C
Second voice, not a rival
Dark variant#470A75
Hover, pressed, headers
Light variant#F4E8FD
Selected rows, tints
Dark surface#1D1424
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 #8f17eb

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#73EB17
Analogous left#2517EB
Analogous right#EB17DD
Split-complement 1#DDEB17
Split-complement 2#17EB25
Triadic 1#EB8F17
Triadic 2#17EB8F
Tetradic#EB2517

RGB percentages

Red56.1%
Green9.0%
Blue92.2%

CMYK percentages

Cyan39.1%
Magenta90.2%
Yellow0.0%
Key (black)7.8%

Color previews

#8f17eb text on a black background

contrast 3.49:1

Card sample

#8f17eb text on a white background

contrast 6.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f17eb

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.

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

#8f17eb, answered

What color is #8f17eb?

#8f17eb is a balanced electric violet, closest to Blue Violet (ΔE2000 1.7). It sits at 274° on the hue wheel with 84% saturation and 51% lightness, which reads as cool.

What is the RGB value of #8f17eb?

rgb(143, 23, 235) — 143 red, 23 green and 235 blue out of 255, or 56.1% / 9% / 92.2% by channel.

Is #8f17eb a light or a dark color?

It is a dark color. Relative luminance is 0.1245 and perceived brightness is 44%, so white text on it reaches 6.02:1.

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

White. It scores 6.02:1 against #8f17eb, versus 3.49:1 for black — AA at any size.

What is the complementary color of #8f17eb?

#73EB17 sits directly opposite on the wheel. Softer options are the split-complements #DDEB17 and #17EB25, which give the same contrast with far less vibration.

What colors go well with #8f17eb?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #784B9B for secondary text, #87C00C as an accent and #470A75 for hover and pressed states. For a palette, the analogous pair #2517EB and #EB17DD stays calm, while #73EB17 is the loudest partner.

What is #8f17eb in CMYK for printing?

cmyk(39%, 90%, 0%, 8%). 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 #8f17eb warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DD17EB; nudged cooler, #4015ED.

Work with #8f17eb in the Color Lab