Skip to content

#b48af2

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

RGB
180, 138, 242
HSL
264°, 80%, 75%
CMYK
26, 43, 0, 5
Luminance
0.3429

At a glance

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

Hex
#b48af2
Hue
264°
violet
Saturation
80%
electric
Lightness
75%
light
Brightness
95%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3429
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.86:1
Closest name
Medium Purple
ΔE2000 9.1
Where it sits
Hue264° of 360°
Saturation80%
Lightness75%
Temperature
Warm ← → Cool70% 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#b48af2
RGBrgb(180, 138, 242)
HSLhsl(264, 80%, 75%)
CMYKcmyk(26%, 43%, 0%, 5%)
LABlab(65.2 36.6 -46.5)
LCHlch(65.2 59.2 308.2)
OKLCHoklch(0.715 0.152 301.3)
Decimal11832050
Display P3color(display-p3 0.706 0.541 0.949)

Copy-ready code

/* CSS */
color: #b48af2;
background-color: #b48af2;
/* Tailwind (arbitrary) */
class="text-[#b48af2] bg-[#b48af2]"
/* SCSS */
$brand: #b48af2;
/* SwiftUI */
Color(red: 0.706, green: 0.541, blue: 0.949)
/* Android */
Color.parseColor("#b48af2")
/* Flutter */
Color(0xFFB48AF2)
/* Python / OpenCV (BGR) */
(242, 138, 180)

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

Accessibility — WCAG contrast

Aa
#b48af2 on white: 2.67:1
AA ✗ fail · AA-large · AAA
Aa
#b48af2 on black: 7.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6E9EF6
deuteranopia · #779EEF
tritanopia · #A99CB2

Color scale — 50 to 950

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

#F6F3FC
#EEE6F9
#D9C7F5
#b48af2
#9E68EE
#7D35E9
#6718DC
#5614B8
#451093
#34106A
#210A42
Base = 300Lightest = 50 · #F6F3FCDarkest = 950 · #210A42
:root {
  --brand-50: #F6F3FC;
  --brand-100: #EEE6F9;
  --brand-200: #D9C7F5;
  --brand-300: #b48af2;
  --brand-400: #9E68EE;
  --brand-500: #7D35E9;
  --brand-600: #6718DC;
  --brand-700: #5614B8;
  --brand-800: #451093;
  --brand-900: #34106A;
  --brand-950: #210A42;
  --brand: #b48af2;
  --brand-ink: #000000;
}

Colors that work with #b48af2

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#D2C0ED
Hairlines and dividers
Muted text#6B4B9B
Captions on the surface
Accent#A2BC10
Second voice, not a rival
Dark variant#360D73
Hover, pressed, headers
Light variant#F0E8FC
Selected rows, tints
Dark surface#1A1424
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 #b48af2

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#C8F28A
Analogous left#8A94F2
Analogous right#E88AF2
Split-complement 1#F2E88A
Split-complement 2#94F28A
Triadic 1#F2B48A
Triadic 2#8AF2B4
Tetradic#F28A94

RGB percentages

Red70.6%
Green54.1%
Blue94.9%

CMYK percentages

Cyan25.6%
Magenta43.0%
Yellow0.0%
Key (black)5.1%

Color previews

#b48af2 text on a black background

contrast 7.86:1

Card sample

#b48af2 text on a white background

contrast 2.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b48af2

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.

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

#b48af2, answered

What color is #b48af2?

#b48af2 is a light electric violet, closest to Medium Purple (ΔE2000 9.1). It sits at 264° on the hue wheel with 80% saturation and 75% lightness, which reads as cool.

What is the RGB value of #b48af2?

rgb(180, 138, 242) — 180 red, 138 green and 242 blue out of 255, or 70.6% / 54.1% / 94.9% by channel.

Is #b48af2 a light or a dark color?

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

Should I use black or white text on #b48af2?

Black. It scores 7.86:1 against #b48af2, versus 2.67:1 for white — AAA at any size.

What is the complementary color of #b48af2?

#C8F28A sits directly opposite on the wheel. Softer options are the split-complements #F2E88A and #94F28A, which give the same contrast with far less vibration.

What colors go well with #b48af2?

For interface work: #F7F4FA as the surface, #D2C0ED for borders, #6B4B9B for secondary text, #A2BC10 as an accent and #360D73 for hover and pressed states. For a palette, the analogous pair #8A94F2 and #E88AF2 stays calm, while #C8F28A is the loudest partner.

What is #b48af2 in CMYK for printing?

cmyk(26%, 43%, 0%, 5%). 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 #b48af2 warm or cool?

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

Work with #b48af2 in the Color Lab