Skip to content

#b021ac

a dark, vivid magenta / pink · neutral · closest name: Dark Orchid

RGB
176, 33, 172
HSL
302°, 68%, 41%
CMYK
0, 81, 2, 31
Luminance
0.1330

At a glance

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

Hex
#b021ac
Hue
302°
magenta / pink
Saturation
68%
vivid
Lightness
41%
dark
Brightness
69%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1330
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.74:1
Closest name
Dark Orchid
ΔE2000 7.5
Where it sits
Hue302° of 360°
Saturation68%
Lightness41%
Temperature
Warm ← → Cool49% 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#b021ac
RGBrgb(176, 33, 172)
HSLhsl(302, 68%, 41%)
CMYKcmyk(0%, 81%, 2%, 31%)
LABlab(43.2 68.9 -41.4)
LCHlch(43.2 80.4 329.0)
OKLCHoklch(0.540 0.226 329.5)
Decimal11542956
Display P3color(display-p3 0.690 0.129 0.675)

Copy-ready code

/* CSS */
color: #b021ac;
background-color: #b021ac;
/* Tailwind (arbitrary) */
class="text-[#b021ac] bg-[#b021ac]"
/* SCSS */
$brand: #b021ac;
/* SwiftUI */
Color(red: 0.690, green: 0.129, blue: 0.675)
/* Android */
Color.parseColor("#b021ac")
/* Flutter */
Color(0xFFB021AC)
/* Python / OpenCV (BGR) */
(172, 33, 176)

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

Accessibility — WCAG contrast

Aa
#b021ac on white: 5.74:1
AA ✓ pass · AA-large · AAA
Aa
#b021ac on black: 3.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005AB0
deuteranopia · #4F6CA9
tritanopia · #B63968

Color scale — 50 to 950

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

#FBF3FB
#F8E8F7
#F2CAF1
#EDA1EB
#E471E1
#DC42D7
#CE27C9
#b021ac
#891A86
#641762
#3E0E3D
Base = 700Lightest = 50 · #FBF3FBDarkest = 950 · #3E0E3D
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F8E8F7;
  --brand-200: #F2CAF1;
  --brand-300: #EDA1EB;
  --brand-400: #E471E1;
  --brand-500: #DC42D7;
  --brand-600: #CE27C9;
  --brand-700: #b021ac;
  --brand-800: #891A86;
  --brand-900: #641762;
  --brand-950: #3E0E3D;
  --brand: #b021ac;
  --brand-ink: #ffffff;
}

Colors that work with #b021ac

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#EDC0EB
Hairlines and dividers
Muted text#9B4B99
Captions on the surface
Accent#3DB01C
Second voice, not a rival
Dark variant#6B1469
Hover, pressed, headers
Light variant#FBEAFA
Selected rows, tints
Dark surface#241424
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 #b021ac

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#21B025
Analogous left#6D21B0
Analogous right#B02164
Split-complement 1#64B021
Split-complement 2#21B06D
Triadic 1#ACB021
Triadic 2#21ACB0
Tetradic#B06D21

RGB percentages

Red69.0%
Green12.9%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta81.3%
Yellow2.3%
Key (black)31.0%

Color previews

#b021ac text on a black background

contrast 3.66:1

Card sample

#b021ac text on a white background

contrast 5.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(176, 33, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(176, 33, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b021ac;
background: linear-gradient(135deg, #b021ac, #B0214D);

Monochromatic scale

Palettes built from #b021ac

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.

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

#b021ac, answered

What color is #b021ac?

#b021ac is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 7.5). It sits at 302° on the hue wheel with 68% saturation and 41% lightness, which reads as neutral.

What is the RGB value of #b021ac?

rgb(176, 33, 172) — 176 red, 33 green and 172 blue out of 255, or 69% / 12.9% / 67.5% by channel.

Is #b021ac a light or a dark color?

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

Should I use black or white text on #b021ac?

White. It scores 5.74:1 against #b021ac, versus 3.66:1 for black — AA at any size.

What is the complementary color of #b021ac?

#21B025 sits directly opposite on the wheel. Softer options are the split-complements #64B021 and #21B06D, which give the same contrast with far less vibration.

What colors go well with #b021ac?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B99 for secondary text, #3DB01C as an accent and #6B1469 for hover and pressed states. For a palette, the analogous pair #6D21B0 and #B02164 stays calm, while #21B025 is the loudest partner.

What is #b021ac in CMYK for printing?

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

Is #b021ac warm or cool?

Neutral — it scores 49 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B02178; nudged cooler, #801FB2.

Work with #b021ac in the Color Lab