Skip to content

#8f02ba

a dark, electric violet · neutral · closest name: Dark Violet

RGB
143, 2, 186
HSL
286°, 98%, 37%
CMYK
23, 99, 0, 27
Luminance
0.0943

At a glance

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

Hex
#8f02ba
Hue
286°
violet
Saturation
98%
electric
Lightness
37%
dark
Brightness
73%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0943
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.28:1
Closest name
Dark Violet
ΔE2000 3.5
Where it sits
Hue286° of 360°
Saturation98%
Lightness37%
Temperature
Warm ← → Cool58% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#8f02ba
RGBrgb(143, 2, 186)
HSLhsl(286, 98%, 37%)
CMYKcmyk(23%, 99%, 0%, 27%)
LABlab(36.8 70.9 -60.3)
LCHlch(36.8 93.1 319.6)
OKLCHoklch(0.488 0.240 314.6)
Decimal9372346
Display P3color(display-p3 0.561 0.008 0.729)

Copy-ready code

/* CSS */
color: #8f02ba;
background-color: #8f02ba;
/* Tailwind (arbitrary) */
class="text-[#8f02ba] bg-[#8f02ba]"
/* SCSS */
$brand: #8f02ba;
/* SwiftUI */
Color(red: 0.561, green: 0.008, blue: 0.729)
/* Android */
Color.parseColor("#8f02ba")
/* Flutter */
Color(0xFF8F02BA)
/* Python / OpenCV (BGR) */
(186, 2, 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 #8f02ba · 7.28:1
Use #ffffffAAA at every size.
Aa
White text · 7.28:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.89:1
AA fail · AA large fail · AAA fail
Reading the other direction: #8f02ba as text scores 7.28:1 on white and 2.89:1 on black.

Accessibility — WCAG contrast

Aa
#8f02ba on white: 7.28:1
AA ✓ pass · AA-large · AAA
Aa
#8f02ba on black: 2.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0050BE
deuteranopia · #0059B7
tritanopia · #8B406C

Color scale — 50 to 950

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

#FBF1FD
#F6E3FC
#EDC1FB
#E490FE
#D758FD
#C921FD
#BA03F2
#8f02ba
#7C02A1
#5B0674
#390449
Base = 700Lightest = 50 · #FBF1FDDarkest = 950 · #390449
:root {
  --brand-50: #FBF1FD;
  --brand-100: #F6E3FC;
  --brand-200: #EDC1FB;
  --brand-300: #E490FE;
  --brand-400: #D758FD;
  --brand-500: #C921FD;
  --brand-600: #BA03F2;
  --brand-700: #8f02ba;
  --brand-800: #7C02A1;
  --brand-900: #5B0674;
  --brand-950: #390449;
  --brand: #8f02ba;
  --brand-ink: #ffffff;
}

Colors that work with #8f02ba

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#F9F4FA
Tinted page background
Border#E2C0ED
Hairlines and dividers
Muted text#884B9B
Captions on the surface
Accent#63CC00
Second voice, not a rival
Dark variant#61017E
Hover, pressed, headers
Light variant#F9E6FF
Selected rows, tints
Dark surface#211424
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 #8f02ba

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black 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#2DBA02
Analogous left#3302BA
Analogous right#BA0289
Split-complement 1#89BA02
Split-complement 2#02BA33
Triadic 1#BA8F02
Triadic 2#02BA8F
Tetradic#BA3302

RGB percentages

Red56.1%
Green0.8%
Blue72.9%

CMYK percentages

Cyan23.1%
Magenta98.9%
Yellow0.0%
Key (black)27.1%

Color previews

#8f02ba text on a black background

contrast 2.89:1

Card sample

#8f02ba text on a white background

contrast 7.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f02ba

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.

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

#8f02ba, answered

What color is #8f02ba?

#8f02ba is a dark electric violet, closest to Dark Violet (ΔE2000 3.5). It sits at 286° on the hue wheel with 98% saturation and 37% lightness, which reads as neutral.

What is the RGB value of #8f02ba?

rgb(143, 2, 186) — 143 red, 2 green and 186 blue out of 255, or 56.1% / 0.8% / 72.9% by channel.

Is #8f02ba a light or a dark color?

It is a dark color. Relative luminance is 0.0943 and perceived brightness is 39%, so white text on it reaches 7.28:1.

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

White. It scores 7.28:1 against #8f02ba, versus 2.89:1 for black — AAA at any size.

What is the complementary color of #8f02ba?

#2DBA02 sits directly opposite on the wheel. Softer options are the split-complements #89BA02 and #02BA33, which give the same contrast with far less vibration.

What colors go well with #8f02ba?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #884B9B for secondary text, #63CC00 as an accent and #61017E for hover and pressed states. For a palette, the analogous pair #3302BA and #BA0289 stays calm, while #2DBA02 is the loudest partner.

What is #8f02ba in CMYK for printing?

cmyk(23%, 99%, 0%, 27%). 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 #8f02ba warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA02A2; nudged cooler, #4B00BC.

Work with #8f02ba in the Color Lab