Skip to content

#b17fd2

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

RGB
177, 127, 210
HSL
276°, 48%, 66%
CMYK
16, 40, 0, 18
Luminance
0.2918

At a glance

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

Hex
#b17fd2
Hue
276°
violet
Saturation
48%
vivid
Lightness
66%
light
Brightness
82%
HSV value
Perceived
61%
weighted brightness
Luminance
0.2918
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.84:1
Closest name
Medium Purple
ΔE2000 8.4
Where it sits
Hue276° of 360°
Saturation48%
Lightness66%
Temperature
Warm ← → Cool63% 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#b17fd2
RGBrgb(177, 127, 210)
HSLhsl(276, 48%, 66%)
CMYKcmyk(16%, 40%, 0%, 18%)
LABlab(60.9 34.6 -35.4)
LCHlch(60.9 49.5 314.3)
OKLCHoklch(0.677 0.130 311.0)
Decimal11632594
Display P3color(display-p3 0.694 0.498 0.824)

Copy-ready code

/* CSS */
color: #b17fd2;
background-color: #b17fd2;
/* Tailwind (arbitrary) */
class="text-[#b17fd2] bg-[#b17fd2]"
/* SCSS */
$brand: #b17fd2;
/* SwiftUI */
Color(red: 0.694, green: 0.498, blue: 0.824)
/* Android */
Color.parseColor("#b17fd2")
/* Flutter */
Color(0xFFB17FD2)
/* Python / OpenCV (BGR) */
(210, 127, 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 #b17fd2 · 6.84:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.07:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.84:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #b17fd2 as text scores 3.07:1 on white and 6.84:1 on black.

Accessibility — WCAG contrast

Aa
#b17fd2 on white: 3.07:1
AA ✗ fail · AA-large · AAA
Aa
#b17fd2 on black: 6.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6F91D5
deuteranopia · #7B94D0
tritanopia · #AD8B9F

Color scale — 50 to 950

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

#F8F4FA
#F1EAF5
#E1D0EC
#CCACE2
#b17fd2
#9A59C5
#8640B5
#703597
#5A2A79
#432258
#2A1537
Base = 400Lightest = 50 · #F8F4FADarkest = 950 · #2A1537
:root {
  --brand-50: #F8F4FA;
  --brand-100: #F1EAF5;
  --brand-200: #E1D0EC;
  --brand-300: #CCACE2;
  --brand-400: #b17fd2;
  --brand-500: #9A59C5;
  --brand-600: #8640B5;
  --brand-700: #703597;
  --brand-800: #5A2A79;
  --brand-900: #432258;
  --brand-950: #2A1537;
  --brand: #b17fd2;
  --brand-ink: #000000;
}

Colors that work with #b17fd2

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#DAC3EA
Hairlines and dividers
Muted text#7B4B9B
Captions on the surface
Accent#759B31
Second voice, not a rival
Dark variant#46215E
Hover, pressed, headers
Light variant#F3ECF8
Selected rows, tints
Dark surface#1E1424
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 #b17fd2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#A0D27F
Analogous left#877FD2
Analogous right#D27FCA
Split-complement 1#CAD27F
Split-complement 2#7FD287
Triadic 1#D2B17F
Triadic 2#7FD2B1
Tetradic#D2877F

RGB percentages

Red69.4%
Green49.8%
Blue82.4%

CMYK percentages

Cyan15.7%
Magenta39.5%
Yellow0.0%
Key (black)17.6%

Color previews

#b17fd2 text on a black background

contrast 6.84:1

Card sample

#b17fd2 text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b17fd2

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.

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

#b17fd2, answered

What color is #b17fd2?

#b17fd2 is a light vivid violet, closest to Medium Purple (ΔE2000 8.4). It sits at 276° on the hue wheel with 48% saturation and 66% lightness, which reads as cool.

What is the RGB value of #b17fd2?

rgb(177, 127, 210) — 177 red, 127 green and 210 blue out of 255, or 69.4% / 49.8% / 82.4% by channel.

Is #b17fd2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2918 and perceived brightness is 61%, so black text on it reaches 6.84:1.

Should I use black or white text on #b17fd2?

Black. It scores 6.84:1 against #b17fd2, versus 3.07:1 for white — AA at any size.

What is the complementary color of #b17fd2?

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

What colors go well with #b17fd2?

For interface work: #F8F4FA as the surface, #DAC3EA for borders, #7B4B9B for secondary text, #759B31 as an accent and #46215E for hover and pressed states. For a palette, the analogous pair #877FD2 and #D27FCA stays calm, while #A0D27F is the loudest partner.

What is #b17fd2 in CMYK for printing?

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

Is #b17fd2 warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF7FD2; nudged cooler, #927DD4.

Work with #b17fd2 in the Color Lab