Skip to content

#8c01ba

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

RGB
140, 1, 186
HSL
285°, 99%, 37%
CMYK
25, 100, 0, 27
Luminance
0.0914

At a glance

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

Hex
#8c01ba
Hue
285°
violet
Saturation
99%
electric
Lightness
37%
dark
Brightness
73%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0914
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Electric
Best ink
White
7.42:1
Closest name
Dark Violet
ΔE2000 3.7
Where it sits
Hue285° of 360°
Saturation99%
Lightness37%
Temperature
Warm ← → Cool58% 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#8c01ba
RGBrgb(140, 1, 186)
HSLhsl(285, 99%, 37%)
CMYKcmyk(25%, 100%, 0%, 27%)
LABlab(36.3 70.6 -61.2)
LCHlch(36.3 93.5 319.1)
OKLCHoklch(0.483 0.239 313.5)
Decimal9175482
Display P3color(display-p3 0.549 0.004 0.729)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8c01ba on white: 7.42:1
AA ✓ pass · AA-large · AAA
Aa
#8c01ba on black: 2.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004FBE
deuteranopia · #0058B7
tritanopia · #87416C

Color scale — 50 to 950

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

#FAF1FE
#F6E3FC
#EDC0FB
#E38FFE
#D558FE
#C720FE
#B701F3
#8c01ba
#7A01A2
#590675
#380349
Base = 700Lightest = 50 · #FAF1FEDarkest = 950 · #380349
:root {
  --brand-50: #FAF1FE;
  --brand-100: #F6E3FC;
  --brand-200: #EDC0FB;
  --brand-300: #E38FFE;
  --brand-400: #D558FE;
  --brand-500: #C720FE;
  --brand-600: #B701F3;
  --brand-700: #8c01ba;
  --brand-800: #7A01A2;
  --brand-900: #590675;
  --brand-950: #380349;
  --brand: #8c01ba;
  --brand-ink: #ffffff;
}

Colors that work with #8c01ba

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#E1C0ED
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#65CC00
Second voice, not a rival
Dark variant#5F017F
Hover, pressed, headers
Light variant#F9E6FF
Selected rows, tints
Dark surface#201424
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 #8c01ba

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#2FBA01
Analogous left#3001BA
Analogous right#BA018C
Split-complement 1#8CBA01
Split-complement 2#01BA30
Triadic 1#BA8C01
Triadic 2#01BA8C
Tetradic#BA3001

RGB percentages

Red54.9%
Green0.4%
Blue72.9%

CMYK percentages

Cyan24.7%
Magenta99.5%
Yellow0.0%
Key (black)27.1%

Color previews

#8c01ba text on a black background

contrast 2.83:1

Card sample

#8c01ba text on a white background

contrast 7.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8c01ba

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.

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

#8c01ba, answered

What color is #8c01ba?

#8c01ba is a dark electric violet, closest to Dark Violet (ΔE2000 3.7). It sits at 285° on the hue wheel with 99% saturation and 37% lightness, which reads as cool.

What is the RGB value of #8c01ba?

rgb(140, 1, 186) — 140 red, 1 green and 186 blue out of 255, or 54.9% / 0.4% / 72.9% by channel.

Is #8c01ba a light or a dark color?

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

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

White. It scores 7.42:1 against #8c01ba, versus 2.83:1 for black — AAA at any size.

What is the complementary color of #8c01ba?

#2FBA01 sits directly opposite on the wheel. Softer options are the split-complements #8CBA01 and #01BA30, which give the same contrast with far less vibration.

What colors go well with #8c01ba?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #874B9B for secondary text, #65CC00 as an accent and #5F017F for hover and pressed states. For a palette, the analogous pair #3001BA and #BA018C stays calm, while #2FBA01 is the loudest partner.

What is #8c01ba in CMYK for printing?

cmyk(25%, 100%, 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 #8c01ba warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA01A4; nudged cooler, #4800BB.

Work with #8c01ba in the Color Lab