Skip to content

#b18ce1

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

RGB
177, 140, 225
HSL
266°, 59%, 72%
CMYK
21, 38, 0, 12
Luminance
0.3354

At a glance

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

Hex
#b18ce1
Hue
266°
violet
Saturation
59%
vivid
Lightness
72%
light
Brightness
88%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3354
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
7.71:1
Closest name
Medium Purple
ΔE2000 9.6
Where it sits
Hue266° of 360°
Saturation59%
Lightness72%
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#b18ce1
RGBrgb(177, 140, 225)
HSLhsl(266, 59%, 72%)
CMYKcmyk(21%, 38%, 0%, 12%)
LABlab(64.6 30.7 -38.1)
LCHlch(64.6 48.9 308.9)
OKLCHoklch(0.707 0.127 303.4)
Decimal11635937
Display P3color(display-p3 0.694 0.549 0.882)

Copy-ready code

/* CSS */
color: #b18ce1;
background-color: #b18ce1;
/* Tailwind (arbitrary) */
class="text-[#b18ce1] bg-[#b18ce1]"
/* SCSS */
$brand: #b18ce1;
/* SwiftUI */
Color(red: 0.694, green: 0.549, blue: 0.882)
/* Android */
Color.parseColor("#b18ce1")
/* Flutter */
Color(0xFFB18CE1)
/* Python / OpenCV (BGR) */
(225, 140, 177)

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

Accessibility — WCAG contrast

Aa
#b18ce1 on white: 2.72:1
AA ✗ fail · AA-large · AAA
Aa
#b18ce1 on black: 7.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #789CE4
deuteranopia · #809DDF
tritanopia · #A999AC

Color scale — 50 to 950

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

#F7F4FB
#EFE9F7
#DCCDEF
#C3A6E8
#b18ce1
#864DD1
#7133C2
#5E2AA2
#4B2281
#391C5E
#24123B
Base = 400Lightest = 50 · #F7F4FBDarkest = 950 · #24123B
:root {
  --brand-50: #F7F4FB;
  --brand-100: #EFE9F7;
  --brand-200: #DCCDEF;
  --brand-300: #C3A6E8;
  --brand-400: #b18ce1;
  --brand-500: #864DD1;
  --brand-600: #7133C2;
  --brand-700: #5E2AA2;
  --brand-800: #4B2281;
  --brand-900: #391C5E;
  --brand-950: #24123B;
  --brand: #b18ce1;
  --brand-ink: #000000;
}

Colors that work with #b18ce1

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#D3C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#8EA626
Second voice, not a rival
Dark variant#3B1A65
Hover, pressed, headers
Light variant#F1EBFA
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 #b18ce1

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#BCE18C
Analogous left#8C92E1
Analogous right#DC8CE1
Split-complement 1#E1DC8C
Split-complement 2#92E18C
Triadic 1#E1B18C
Triadic 2#8CE1B1
Tetradic#E18C92

RGB percentages

Red69.4%
Green54.9%
Blue88.2%

CMYK percentages

Cyan21.3%
Magenta37.8%
Yellow0.0%
Key (black)11.8%

Color previews

#b18ce1 text on a black background

contrast 7.71:1

Card sample

#b18ce1 text on a white background

contrast 2.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b18ce1

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.

#b18ce1 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

Converts to four-color process without much drama. Proof it anyway.

#b18ce1, answered

What color is #b18ce1?

#b18ce1 is a light vivid violet, closest to Medium Purple (ΔE2000 9.6). It sits at 266° on the hue wheel with 59% saturation and 72% lightness, which reads as cool.

What is the RGB value of #b18ce1?

rgb(177, 140, 225) — 177 red, 140 green and 225 blue out of 255, or 69.4% / 54.9% / 88.2% by channel.

Is #b18ce1 a light or a dark color?

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

Should I use black or white text on #b18ce1?

Black. It scores 7.71:1 against #b18ce1, versus 2.72:1 for white — AAA at any size.

What is the complementary color of #b18ce1?

#BCE18C sits directly opposite on the wheel. Softer options are the split-complements #E1DC8C and #92E18C, which give the same contrast with far less vibration.

What colors go well with #b18ce1?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6E4B9B for secondary text, #8EA626 as an accent and #3B1A65 for hover and pressed states. For a palette, the analogous pair #8C92E1 and #DC8CE1 stays calm, while #BCE18C is the loudest partner.

What is #b18ce1 in CMYK for printing?

cmyk(21%, 38%, 0%, 12%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #b18ce1 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 #D08CE1; nudged cooler, #918BE2.

Work with #b18ce1 in the Color Lab