Skip to content

#bf7dfb

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

RGB
191, 125, 251
HSL
271°, 94%, 74%
CMYK
24, 50, 0, 2
Luminance
0.3271

At a glance

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

Hex
#bf7dfb
Hue
271°
violet
Saturation
94%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3271
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.54:1
Closest name
Medium Purple
ΔE2000 9.2
Where it sits
Hue271° of 360°
Saturation94%
Lightness74%
Temperature
Warm ← → Cool66% 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#bf7dfb
RGBrgb(191, 125, 251)
HSLhsl(271, 94%, 74%)
CMYKcmyk(24%, 50%, 0%, 2%)
LABlab(63.9 48.7 -53.4)
LCHlch(63.9 72.3 312.4)
OKLCHoklch(0.709 0.186 306.4)
Decimal12549627
Display P3color(display-p3 0.749 0.490 0.984)

Copy-ready code

/* CSS */
color: #bf7dfb;
background-color: #bf7dfb;
/* Tailwind (arbitrary) */
class="text-[#bf7dfb] bg-[#bf7dfb]"
/* SCSS */
$brand: #bf7dfb;
/* SwiftUI */
Color(red: 0.749, green: 0.490, blue: 0.984)
/* Android */
Color.parseColor("#bf7dfb")
/* Flutter */
Color(0xFFBF7DFB)
/* Python / OpenCV (BGR) */
(251, 125, 191)

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

Accessibility — WCAG contrast

Aa
#bf7dfb on white: 2.78:1
AA ✗ fail · AA-large · AAA
Aa
#bf7dfb on black: 7.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5899FF
deuteranopia · #6B9BF8
tritanopia · #B693B1

Color scale — 50 to 950

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

#F8F2FD
#F0E4FB
#DFC2FA
#bf7dfb
#AF5CFA
#9425F8
#8007ED
#6A06C6
#55059E
#400872
#280547
Base = 300Lightest = 50 · #F8F2FDDarkest = 950 · #280547
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F0E4FB;
  --brand-200: #DFC2FA;
  --brand-300: #bf7dfb;
  --brand-400: #AF5CFA;
  --brand-500: #9425F8;
  --brand-600: #8007ED;
  --brand-700: #6A06C6;
  --brand-800: #55059E;
  --brand-900: #400872;
  --brand-950: #280547;
  --brand: #bf7dfb;
  --brand-ink: #000000;
}

Colors that work with #bf7dfb

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#D7C0ED
Hairlines and dividers
Muted text#754B9B
Captions on the surface
Accent#94CA02
Second voice, not a rival
Dark variant#43047C
Hover, pressed, headers
Light variant#F3E6FE
Selected rows, tints
Dark surface#1C1424
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 #bf7dfb

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#B9FB7D
Analogous left#807DFB
Analogous right#FB7DF8
Split-complement 1#F8FB7D
Split-complement 2#7DFB80
Triadic 1#FBBF7D
Triadic 2#7DFBBF
Tetradic#FB807D

RGB percentages

Red74.9%
Green49.0%
Blue98.4%

CMYK percentages

Cyan23.9%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#bf7dfb text on a black background

contrast 7.54:1

Card sample

#bf7dfb text on a white background

contrast 2.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bf7dfb

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.

#bf7dfb 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.

#bf7dfb, answered

What color is #bf7dfb?

#bf7dfb is a light electric violet, closest to Medium Purple (ΔE2000 9.2). It sits at 271° on the hue wheel with 94% saturation and 74% lightness, which reads as cool.

What is the RGB value of #bf7dfb?

rgb(191, 125, 251) — 191 red, 125 green and 251 blue out of 255, or 74.9% / 49% / 98.4% by channel.

Is #bf7dfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3271 and perceived brightness is 65%, so black text on it reaches 7.54:1.

Should I use black or white text on #bf7dfb?

Black. It scores 7.54:1 against #bf7dfb, versus 2.78:1 for white — AAA at any size.

What is the complementary color of #bf7dfb?

#B9FB7D sits directly opposite on the wheel. Softer options are the split-complements #F8FB7D and #7DFB80, which give the same contrast with far less vibration.

What colors go well with #bf7dfb?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #754B9B for secondary text, #94CA02 as an accent and #43047C for hover and pressed states. For a palette, the analogous pair #807DFB and #FB7DF8 stays calm, while #B9FB7D is the loudest partner.

What is #bf7dfb in CMYK for printing?

cmyk(24%, 50%, 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 #bf7dfb warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #ED7DFB; nudged cooler, #907CFC.

Work with #bf7dfb in the Color Lab