Skip to content

#bc8afb

a light, electric violet · cool · closest name: Medium Purple

RGB
188, 138, 251
HSL
267°, 93%, 76%
CMYK
25, 45, 0, 2
Luminance
0.3583

At a glance

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

Hex
#bc8afb
Hue
267°
violet
Saturation
93%
electric
Lightness
76%
light
Brightness
98%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3583
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.17:1
Closest name
Medium Purple
ΔE2000 10.2
Where it sits
Hue267° of 360°
Saturation93%
Lightness76%
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#bc8afb
RGBrgb(188, 138, 251)
HSLhsl(267, 93%, 76%)
CMYKcmyk(25%, 45%, 0%, 2%)
LABlab(66.4 40.9 -49.5)
LCHlch(66.4 64.2 309.6)
OKLCHoklch(0.727 0.165 302.9)
Decimal12356347
Display P3color(display-p3 0.737 0.541 0.984)

Copy-ready code

/* CSS */
color: #bc8afb;
background-color: #bc8afb;
/* Tailwind (arbitrary) */
class="text-[#bc8afb] bg-[#bc8afb]"
/* SCSS */
$brand: #bc8afb;
/* SwiftUI */
Color(red: 0.737, green: 0.541, blue: 0.984)
/* Android */
Color.parseColor("#bc8afb")
/* Flutter */
Color(0xFFBC8AFB)
/* Python / OpenCV (BGR) */
(251, 138, 188)

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#000000 on #bc8afb · 8.17:1
Use #000000AAA at every size.
Aa
White text · 2.57:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.17:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #bc8afb as text scores 2.57:1 on white and 8.17:1 on black.

Accessibility — WCAG contrast

Aa
#bc8afb on white: 2.57:1
AA ✗ fail · AA-large · AAA
Aa
#bc8afb on black: 8.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6BA0FF
deuteranopia · #77A1F8
tritanopia · #B19DB7

Color scale — 50 to 950

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

#F7F2FD
#EEE4FB
#DBC2F9
#bc8afb
#A25CF9
#8326F8
#6D08ED
#5B07C5
#49059E
#370972
#220547
Base = 300Lightest = 50 · #F7F2FDDarkest = 950 · #220547
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EEE4FB;
  --brand-200: #DBC2F9;
  --brand-300: #bc8afb;
  --brand-400: #A25CF9;
  --brand-500: #8326F8;
  --brand-600: #6D08ED;
  --brand-700: #5B07C5;
  --brand-800: #49059E;
  --brand-900: #370972;
  --brand-950: #220547;
  --brand: #bc8afb;
  --brand-ink: #000000;
}

Colors that work with #bc8afb

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F7F4FA
Tinted page background
Border#D4C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#A3C903
Second voice, not a rival
Dark variant#39047B
Hover, pressed, headers
Light variant#F1E6FE
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 #bc8afb

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White 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#C9FB8A
Analogous left#8A91FB
Analogous right#F48AFB
Split-complement 1#FBF48A
Split-complement 2#91FB8A
Triadic 1#FBBC8A
Triadic 2#8AFBBC
Tetradic#FB8A91

RGB percentages

Red73.7%
Green54.1%
Blue98.4%

CMYK percentages

Cyan25.1%
Magenta45.0%
Yellow0.0%
Key (black)1.6%

Color previews

#bc8afb text on a black background

contrast 8.17:1

Card sample

#bc8afb text on a white background

contrast 2.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(188, 138, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(188, 138, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bc8afb;
background: linear-gradient(135deg, #bc8afb, #FB8AEF);

Monochromatic scale

Palettes built from #bc8afb

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.

#bc8afb 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#bc8afb, answered

What color is #bc8afb?

#bc8afb is a light electric violet, closest to Medium Purple (ΔE2000 10.2). It sits at 267° on the hue wheel with 93% saturation and 76% lightness, which reads as cool.

What is the RGB value of #bc8afb?

rgb(188, 138, 251) — 188 red, 138 green and 251 blue out of 255, or 73.7% / 54.1% / 98.4% by channel.

Is #bc8afb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3583 and perceived brightness is 67%, so black text on it reaches 8.17:1.

Should I use black or white text on #bc8afb?

Black. It scores 8.17:1 against #bc8afb, versus 2.57:1 for white — AAA at any size.

What is the complementary color of #bc8afb?

#C9FB8A sits directly opposite on the wheel. Softer options are the split-complements #FBF48A and #91FB8A, which give the same contrast with far less vibration.

What colors go well with #bc8afb?

For interface work: #F7F4FA as the surface, #D4C0ED for borders, #6E4B9B for secondary text, #A3C903 as an accent and #39047B for hover and pressed states. For a palette, the analogous pair #8A91FB and #F48AFB stays calm, while #C9FB8A is the loudest partner.

What is #bc8afb in CMYK for printing?

cmyk(25%, 45%, 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 #bc8afb 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 #E58AFB; nudged cooler, #9289FC.

Work with #bc8afb in the Color Lab