Skip to content

#b021af

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

RGB
176, 33, 175
HSL
300°, 68%, 41%
CMYK
0, 81, 1, 31
Luminance
0.1341

At a glance

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

Hex
#b021af
Hue
300°
magenta / pink
Saturation
68%
vivid
Lightness
41%
dark
Brightness
69%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1341
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.70:1
Closest name
Dark Orchid
ΔE2000 7
Where it sits
Hue300° of 360°
Saturation68%
Lightness41%
Temperature
Warm ← → Cool50% 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#b021af
RGBrgb(176, 33, 175)
HSLhsl(300, 68%, 41%)
CMYKcmyk(0%, 81%, 1%, 31%)
LABlab(43.4 69.4 -42.9)
LCHlch(43.4 81.6 328.3)
OKLCHoklch(0.542 0.228 328.5)
Decimal11542959
Display P3color(display-p3 0.690 0.129 0.686)

Copy-ready code

/* CSS */
color: #b021af;
background-color: #b021af;
/* Tailwind (arbitrary) */
class="text-[#b021af] bg-[#b021af]"
/* SCSS */
$brand: #b021af;
/* SwiftUI */
Color(red: 0.690, green: 0.129, blue: 0.686)
/* Android */
Color.parseColor("#b021af")
/* Flutter */
Color(0xFFB021AF)
/* Python / OpenCV (BGR) */
(175, 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 #b021af · 5.70:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.70:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.68:1
AA fail · AA large pass · AAA fail
Reading the other direction: #b021af as text scores 5.70:1 on white and 3.68:1 on black.

Accessibility — WCAG contrast

Aa
#b021af on white: 5.70:1
AA ✓ pass · AA-large · AAA
Aa
#b021af on black: 3.68:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005BB3
deuteranopia · #4D6DAC
tritanopia · #B63B6A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #b021af 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
#F8E8F8
#F2CAF2
#EDA1ED
#E471E4
#DC42DB
#CE27CD
#b021af
#891A89
#641763
#3E0E3E
Base = 700Lightest = 50 · #FBF3FBDarkest = 950 · #3E0E3E
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F8E8F8;
  --brand-200: #F2CAF2;
  --brand-300: #EDA1ED;
  --brand-400: #E471E4;
  --brand-500: #DC42DB;
  --brand-600: #CE27CD;
  --brand-700: #b021af;
  --brand-800: #891A89;
  --brand-900: #641763;
  --brand-950: #3E0E3E;
  --brand: #b021af;
  --brand-ink: #ffffff;
}

Colors that work with #b021af

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#EDC0EC
Hairlines and dividers
Muted text#9B4B9A
Captions on the surface
Accent#40B01C
Second voice, not a rival
Dark variant#6B146B
Hover, pressed, headers
Light variant#FBEAFB
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 #b021af

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#21B022
Analogous left#6A21B0
Analogous right#B02168
Split-complement 1#68B021
Split-complement 2#21B06A
Triadic 1#AFB021
Triadic 2#21AFB0
Tetradic#B06A21

RGB percentages

Red69.0%
Green12.9%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta81.3%
Yellow0.6%
Key (black)31.0%

Color previews

#b021af text on a black background

contrast 3.68:1

Card sample

#b021af text on a white background

contrast 5.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b021af

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.

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

#b021af, answered

What color is #b021af?

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

What is the RGB value of #b021af?

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

Is #b021af a light or a dark color?

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

Should I use black or white text on #b021af?

White. It scores 5.70:1 against #b021af, versus 3.68:1 for black — AA at any size.

What is the complementary color of #b021af?

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

What colors go well with #b021af?

For interface work: #FAF4FA as the surface, #EDC0EC for borders, #9B4B9A for secondary text, #40B01C as an accent and #6B146B for hover and pressed states. For a palette, the analogous pair #6A21B0 and #B02168 stays calm, while #21B022 is the loudest partner.

What is #b021af in CMYK for printing?

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

Is #b021af warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B0217B; nudged cooler, #7D1FB2.

Work with #b021af in the Color Lab