Skip to content

#b71ba2

a dark, vivid magenta / pink · neutral · closest name: Medium Violet Red

RGB
183, 27, 162
HSL
308°, 74%, 41%
CMYK
0, 85, 12, 28
Luminance
0.1346

At a glance

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

Hex
#b71ba2
Hue
308°
magenta / pink
Saturation
74%
vivid
Lightness
41%
dark
Brightness
72%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1346
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.69:1
Closest name
Medium Violet Red
ΔE2000 7.5
Where it sits
Hue308° of 360°
Saturation74%
Lightness41%
Temperature
Warm ← → Cool45% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#b71ba2
RGBrgb(183, 27, 162)
HSLhsl(308, 74%, 41%)
CMYKcmyk(0%, 85%, 12%, 28%)
LABlab(43.5 70.2 -35.0)
LCHlch(43.5 78.4 333.5)
OKLCHoklch(0.543 0.226 334.9)
Decimal12000162
Display P3color(display-p3 0.718 0.106 0.635)

Copy-ready code

/* CSS */
color: #b71ba2;
background-color: #b71ba2;
/* Tailwind (arbitrary) */
class="text-[#b71ba2] bg-[#b71ba2]"
/* SCSS */
$brand: #b71ba2;
/* SwiftUI */
Color(red: 0.718, green: 0.106, blue: 0.635)
/* Android */
Color.parseColor("#b71ba2")
/* Flutter */
Color(0xFFB71BA2)
/* Python / OpenCV (BGR) */
(162, 27, 183)

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#ffffff on #b71ba2 · 5.69:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.69:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.69:1
AA fail · AA large pass · AAA fail
Reading the other direction: #b71ba2 as text scores 5.69:1 on white and 3.69:1 on black.

Accessibility — WCAG contrast

Aa
#b71ba2 on white: 5.69:1
AA ✓ pass · AA-large · AAA
Aa
#b71ba2 on black: 3.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1958A5
deuteranopia · #596E9F
tritanopia · #C02D61

Color scale — 50 to 950

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

#FCF3FB
#F9E7F6
#F4C8EE
#F19DE5
#E96CD8
#E23BCC
#D51FBD
#b71ba2
#8E157E
#67135C
#400C39
Base = 700Lightest = 50 · #FCF3FBDarkest = 950 · #400C39
:root {
  --brand-50: #FCF3FB;
  --brand-100: #F9E7F6;
  --brand-200: #F4C8EE;
  --brand-300: #F19DE5;
  --brand-400: #E96CD8;
  --brand-500: #E23BCC;
  --brand-600: #D51FBD;
  --brand-700: #b71ba2;
  --brand-800: #8E157E;
  --brand-900: #67135C;
  --brand-950: #400C39;
  --brand: #b71ba2;
  --brand-ink: #ffffff;
}

Colors that work with #b71ba2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF4FA
Tinted page background
Border#EDC0E7
Hairlines and dividers
Muted text#9B4B90
Captions on the surface
Accent#29B616
Second voice, not a rival
Dark variant#6F1062
Hover, pressed, headers
Light variant#FCE9F9
Selected rows, tints
Dark surface#241422
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 #b71ba2

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#1BB730
Analogous left#7E1BB7
Analogous right#B71B54
Split-complement 1#54B71B
Split-complement 2#1BB77E
Triadic 1#A2B71B
Triadic 2#1BA2B7
Tetradic#B77E1B

RGB percentages

Red71.8%
Green10.6%
Blue63.5%

CMYK percentages

Cyan0.0%
Magenta85.2%
Yellow11.5%
Key (black)28.2%

Color previews

#b71ba2 text on a black background

contrast 3.69:1

Card sample

#b71ba2 text on a white background

contrast 5.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(183, 27, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(183, 27, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b71ba2;
background: linear-gradient(135deg, #b71ba2, #B71B3A);

Monochromatic scale

Palettes built from #b71ba2

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.

#b71ba2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#b71ba2, answered

What color is #b71ba2?

#b71ba2 is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 7.5). It sits at 308° on the hue wheel with 74% saturation and 41% lightness, which reads as neutral.

What is the RGB value of #b71ba2?

rgb(183, 27, 162) — 183 red, 27 green and 162 blue out of 255, or 71.8% / 10.6% / 63.5% by channel.

Is #b71ba2 a light or a dark color?

It is a dark color. Relative luminance is 0.1346 and perceived brightness is 45%, so white text on it reaches 5.69:1.

Should I use black or white text on #b71ba2?

White. It scores 5.69:1 against #b71ba2, versus 3.69:1 for black — AA at any size.

What is the complementary color of #b71ba2?

#1BB730 sits directly opposite on the wheel. Softer options are the split-complements #54B71B and #1BB77E, which give the same contrast with far less vibration.

What colors go well with #b71ba2?

For interface work: #FAF4FA as the surface, #EDC0E7 for borders, #9B4B90 for secondary text, #29B616 as an accent and #6F1062 for hover and pressed states. For a palette, the analogous pair #7E1BB7 and #B71B54 stays calm, while #1BB730 is the loudest partner.

What is #b71ba2 in CMYK for printing?

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

Is #b71ba2 warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B71B69; nudged cooler, #9419B9.

Work with #b71ba2 in the Color Lab