Skip to content

#b97dfb

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

RGB
185, 125, 251
HSL
269°, 94%, 74%
CMYK
26, 50, 0, 2
Luminance
0.3195

At a glance

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

Hex
#b97dfb
Hue
269°
violet
Saturation
94%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3195
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.39:1
Closest name
Medium Purple
ΔE2000 8.3
Where it sits
Hue269° of 360°
Saturation94%
Lightness74%
Temperature
Warm ← → Cool67% 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#b97dfb
RGBrgb(185, 125, 251)
HSLhsl(269, 94%, 74%)
CMYKcmyk(26%, 50%, 0%, 2%)
LABlab(63.3 47.2 -54.4)
LCHlch(63.3 72.0 310.9)
OKLCHoklch(0.703 0.184 304.0)
Decimal12156411
Display P3color(display-p3 0.725 0.490 0.984)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#b97dfb on white: 2.84:1
AA ✗ fail · AA-large · AAA
Aa
#b97dfb on black: 7.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5698FF
deuteranopia · #6799F8
tritanopia · #AE94B1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #b97dfb 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
#EFE4FB
#DDC2FA
#b97dfb
#A75CFA
#8A25F8
#7507ED
#6206C6
#4E059E
#3B0872
#250547
Base = 300Lightest = 50 · #F7F2FDDarkest = 950 · #250547
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE4FB;
  --brand-200: #DDC2FA;
  --brand-300: #b97dfb;
  --brand-400: #A75CFA;
  --brand-500: #8A25F8;
  --brand-600: #7507ED;
  --brand-700: #6206C6;
  --brand-800: #4E059E;
  --brand-900: #3B0872;
  --brand-950: #250547;
  --brand: #b97dfb;
  --brand-ink: #000000;
}

Colors that work with #b97dfb

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#D5C0ED
Hairlines and dividers
Muted text#714B9B
Captions on the surface
Accent#9DCA02
Second voice, not a rival
Dark variant#3D047C
Hover, pressed, headers
Light variant#F2E6FE
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 #b97dfb

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#BFFB7D
Analogous left#7D80FB
Analogous right#F87DFB
Split-complement 1#FBF87D
Split-complement 2#80FB7D
Triadic 1#FBB97D
Triadic 2#7DFBB9
Tetradic#FB7D80

RGB percentages

Red72.5%
Green49.0%
Blue98.4%

CMYK percentages

Cyan26.3%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#b97dfb text on a black background

contrast 7.39:1

Card sample

#b97dfb text on a white background

contrast 2.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b97dfb

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.

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

#b97dfb, answered

What color is #b97dfb?

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

What is the RGB value of #b97dfb?

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

Is #b97dfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3195 and perceived brightness is 64%, so black text on it reaches 7.39:1.

Should I use black or white text on #b97dfb?

Black. It scores 7.39:1 against #b97dfb, versus 2.84:1 for white — AAA at any size.

What is the complementary color of #b97dfb?

#BFFB7D sits directly opposite on the wheel. Softer options are the split-complements #FBF87D and #80FB7D, which give the same contrast with far less vibration.

What colors go well with #b97dfb?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #9DCA02 as an accent and #3D047C for hover and pressed states. For a palette, the analogous pair #7D80FB and #F87DFB stays calm, while #BFFB7D is the loudest partner.

What is #b97dfb in CMYK for printing?

cmyk(26%, 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 #b97dfb warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E77DFB; nudged cooler, #8A7CFC.

Work with #b97dfb in the Color Lab