Skip to content

#b97eee

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

RGB
185, 126, 238
HSL
272°, 77%, 71%
CMYK
22, 47, 0, 7
Luminance
0.3141

At a glance

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

Hex
#b97eee
Hue
272°
violet
Saturation
77%
electric
Lightness
71%
light
Brightness
93%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3141
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.28:1
Closest name
Medium Purple
ΔE2000 8.1
Where it sits
Hue272° of 360°
Saturation77%
Lightness71%
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#b97eee
RGBrgb(185, 126, 238)
HSLhsl(272, 77%, 71%)
CMYKcmyk(22%, 47%, 0%, 7%)
LABlab(62.9 43.6 -48.0)
LCHlch(62.9 64.9 312.3)
OKLCHoklch(0.698 0.168 306.9)
Decimal12156654
Display P3color(display-p3 0.725 0.494 0.933)

Copy-ready code

/* CSS */
color: #b97eee;
background-color: #b97eee;
/* Tailwind (arbitrary) */
class="text-[#b97eee] bg-[#b97eee]"
/* SCSS */
$brand: #b97eee;
/* SwiftUI */
Color(red: 0.725, green: 0.494, blue: 0.933)
/* Android */
Color.parseColor("#b97eee")
/* Flutter */
Color(0xFFB97EEE)
/* Python / OpenCV (BGR) */
(238, 126, 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 #b97eee · 7.28:1
Use #000000AAA at every size.
Aa
White text · 2.88:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.28:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #b97eee as text scores 2.88:1 on white and 7.28:1 on black.

Accessibility — WCAG contrast

Aa
#b97eee on white: 2.88:1
AA ✗ fail · AA-large · AAA
Aa
#b97eee on black: 7.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6196F2
deuteranopia · #7099EB
tritanopia · #B191AB

Color scale — 50 to 950

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

#F8F3FC
#F0E7F9
#DFC7F4
#C99CF2
#b97eee
#9339E5
#7F1DD8
#6A18B4
#551390
#401268
#280B41
Base = 400Lightest = 50 · #F8F3FCDarkest = 950 · #280B41
:root {
  --brand-50: #F8F3FC;
  --brand-100: #F0E7F9;
  --brand-200: #DFC7F4;
  --brand-300: #C99CF2;
  --brand-400: #b97eee;
  --brand-500: #9339E5;
  --brand-600: #7F1DD8;
  --brand-700: #6A18B4;
  --brand-800: #551390;
  --brand-900: #401268;
  --brand-950: #280B41;
  --brand: #b97eee;
  --brand-ink: #000000;
}

Colors that work with #b97eee

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#F8F4FA
Tinted page background
Border#D7C0ED
Hairlines and dividers
Muted text#754B9B
Captions on the surface
Accent#8AB814
Second voice, not a rival
Dark variant#420F71
Hover, pressed, headers
Light variant#F3E8FC
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 #b97eee

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#B3EE7E
Analogous left#817EEE
Analogous right#EE7EEB
Split-complement 1#EBEE7E
Split-complement 2#7EEE81
Triadic 1#EEB97E
Triadic 2#7EEEB9
Tetradic#EE817E

RGB percentages

Red72.5%
Green49.4%
Blue93.3%

CMYK percentages

Cyan22.3%
Magenta47.1%
Yellow0.0%
Key (black)6.7%

Color previews

#b97eee text on a black background

contrast 7.28:1

Card sample

#b97eee text on a white background

contrast 2.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b97eee

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.

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

#b97eee, answered

What color is #b97eee?

#b97eee is a light electric violet, closest to Medium Purple (ΔE2000 8.1). It sits at 272° on the hue wheel with 77% saturation and 71% lightness, which reads as cool.

What is the RGB value of #b97eee?

rgb(185, 126, 238) — 185 red, 126 green and 238 blue out of 255, or 72.5% / 49.4% / 93.3% by channel.

Is #b97eee a light or a dark color?

It is a mid-tone. Relative luminance is 0.3141 and perceived brightness is 63%, so black text on it reaches 7.28:1.

Should I use black or white text on #b97eee?

Black. It scores 7.28:1 against #b97eee, versus 2.88:1 for white — AAA at any size.

What is the complementary color of #b97eee?

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

What colors go well with #b97eee?

For interface work: #F8F4FA as the surface, #D7C0ED for borders, #754B9B for secondary text, #8AB814 as an accent and #420F71 for hover and pressed states. For a palette, the analogous pair #817EEE and #EE7EEB stays calm, while #B3EE7E is the loudest partner.

What is #b97eee in CMYK for printing?

cmyk(22%, 47%, 0%, 7%). 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 #b97eee 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 #E27EEE; nudged cooler, #8F7DEF.

Work with #b97eee in the Color Lab