Skip to content

#b38bdf

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

RGB
179, 139, 223
HSL
269°, 57%, 71%
CMYK
20, 38, 0, 13
Luminance
0.3338

At a glance

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

Hex
#b38bdf
Hue
269°
violet
Saturation
57%
vivid
Lightness
71%
light
Brightness
87%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3338
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
7.68:1
Closest name
Medium Purple
ΔE2000 9.7
Where it sits
Hue269° of 360°
Saturation57%
Lightness71%
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#b38bdf
RGBrgb(179, 139, 223)
HSLhsl(269, 57%, 71%)
CMYKcmyk(20%, 38%, 0%, 13%)
LABlab(64.5 31.4 -37.2)
LCHlch(64.5 48.6 310.2)
OKLCHoklch(0.706 0.126 305.3)
Decimal11766751
Display P3color(display-p3 0.702 0.545 0.875)

Copy-ready code

/* CSS */
color: #b38bdf;
background-color: #b38bdf;
/* Tailwind (arbitrary) */
class="text-[#b38bdf] bg-[#b38bdf]"
/* SCSS */
$brand: #b38bdf;
/* SwiftUI */
Color(red: 0.702, green: 0.545, blue: 0.875)
/* Android */
Color.parseColor("#b38bdf")
/* Flutter */
Color(0xFFB38BDF)
/* Python / OpenCV (BGR) */
(223, 139, 179)

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

Accessibility — WCAG contrast

Aa
#b38bdf on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#b38bdf on black: 7.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #789BE2
deuteranopia · #819DDD
tritanopia · #AC98AB

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #b38bdf 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
#EFE9F6
#DDCDEE
#C5A7E7
#b38bdf
#8C4FCF
#7735C0
#632CA0
#4F2380
#3C1D5D
#25123A
Base = 400Lightest = 50 · #F7F4FBDarkest = 950 · #25123A
:root {
  --brand-50: #F7F4FB;
  --brand-100: #EFE9F6;
  --brand-200: #DDCDEE;
  --brand-300: #C5A7E7;
  --brand-400: #b38bdf;
  --brand-500: #8C4FCF;
  --brand-600: #7735C0;
  --brand-700: #632CA0;
  --brand-800: #4F2380;
  --brand-900: #3C1D5D;
  --brand-950: #25123A;
  --brand: #b38bdf;
  --brand-ink: #000000;
}

Colors that work with #b38bdf

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#89A428
Second voice, not a rival
Dark variant#3E1C64
Hover, pressed, headers
Light variant#F2EBF9
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 #b38bdf

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#B7DF8B
Analogous left#8B8DDF
Analogous right#DD8BDF
Split-complement 1#DFDD8B
Split-complement 2#8DDF8B
Triadic 1#DFB38B
Triadic 2#8BDFB3
Tetradic#DF8B8D

RGB percentages

Red70.2%
Green54.5%
Blue87.5%

CMYK percentages

Cyan19.7%
Magenta37.7%
Yellow0.0%
Key (black)12.5%

Color previews

#b38bdf text on a black background

contrast 7.68:1

Card sample

#b38bdf text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(179, 139, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(179, 139, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b38bdf;
background: linear-gradient(135deg, #b38bdf, #DF8BD3);

Monochromatic scale

Palettes built from #b38bdf

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.

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

#b38bdf, answered

What color is #b38bdf?

#b38bdf is a light vivid violet, closest to Medium Purple (ΔE2000 9.7). It sits at 269° on the hue wheel with 57% saturation and 71% lightness, which reads as cool.

What is the RGB value of #b38bdf?

rgb(179, 139, 223) — 179 red, 139 green and 223 blue out of 255, or 70.2% / 54.5% / 87.5% by channel.

Is #b38bdf a light or a dark color?

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

Should I use black or white text on #b38bdf?

Black. It scores 7.68:1 against #b38bdf, versus 2.74:1 for white — AAA at any size.

What is the complementary color of #b38bdf?

#B7DF8B sits directly opposite on the wheel. Softer options are the split-complements #DFDD8B and #8DDF8B, which give the same contrast with far less vibration.

What colors go well with #b38bdf?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #89A428 as an accent and #3E1C64 for hover and pressed states. For a palette, the analogous pair #8B8DDF and #DD8BDF stays calm, while #B7DF8B is the loudest partner.

What is #b38bdf in CMYK for printing?

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

Is #b38bdf 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 #D28BDF; nudged cooler, #938AE1.

Work with #b38bdf in the Color Lab