Skip to content

#b021fd

a balanced, electric violet · cool · closest name: Dark Orchid

RGB
176, 33, 253
HSL
279°, 98%, 56%
CMYK
30, 87, 0, 1
Luminance
0.1741

At a glance

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

Hex
#b021fd
Hue
279°
violet
Saturation
98%
electric
Lightness
56%
balanced
Brightness
99%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1741
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.69:1
Closest name
Dark Orchid
ΔE2000 7
Where it sits
Hue279° of 360°
Saturation98%
Lightness56%
Temperature
Warm ← → Cool62% 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#b021fd
RGBrgb(176, 33, 253)
HSLhsl(279, 98%, 56%)
CMYKcmyk(30%, 87%, 0%, 1%)
LABlab(48.8 83.2 -79.0)
LCHlch(48.8 114.7 316.5)
OKLCHoklch(0.597 0.288 308.6)
Decimal11543037
Display P3color(display-p3 0.690 0.129 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b021fd on white: 4.69:1
AA ✓ pass · AA-large · AAA
Aa
#b021fd on black: 4.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006FFF
deuteranopia · #0075F9
tritanopia · #A36397

Color scale — 50 to 950

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

#F9F1FD
#F3E3FC
#E7C1FB
#D790FE
#C458FD
#b021fd
#9E02F3
#8402CA
#6A01A2
#4E0674
#310449
Base = 500Lightest = 50 · #F9F1FDDarkest = 950 · #310449
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F3E3FC;
  --brand-200: #E7C1FB;
  --brand-300: #D790FE;
  --brand-400: #C458FD;
  --brand-500: #b021fd;
  --brand-600: #9E02F3;
  --brand-700: #8402CA;
  --brand-800: #6A01A2;
  --brand-900: #4E0674;
  --brand-950: #310449;
  --brand: #b021fd;
  --brand-ink: #ffffff;
}

Colors that work with #b021fd

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#F8F4FA
Tinted page background
Border#DDC0ED
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#7ACC00
Second voice, not a rival
Dark variant#53017E
Hover, pressed, headers
Light variant#F6E6FF
Selected rows, tints
Dark surface#1F1424
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 #b021fd

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#6EFD21
Analogous left#4221FD
Analogous right#FD21DC
Split-complement 1#DCFD21
Split-complement 2#21FD42
Triadic 1#FDB021
Triadic 2#21FDB0
Tetradic#FD4221

RGB percentages

Red69.0%
Green12.9%
Blue99.2%

CMYK percentages

Cyan30.4%
Magenta87.0%
Yellow0.0%
Key (black)0.8%

Color previews

#b021fd text on a black background

contrast 4.48:1

Card sample

#b021fd text on a white background

contrast 4.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b021fd

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.

#b021fd 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
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#b021fd, answered

What color is #b021fd?

#b021fd is a balanced electric violet, closest to Dark Orchid (ΔE2000 7). It sits at 279° on the hue wheel with 98% saturation and 56% lightness, which reads as cool.

What is the RGB value of #b021fd?

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

Is #b021fd a light or a dark color?

It is a dark color. Relative luminance is 0.1741 and perceived brightness is 51%, so white text on it reaches 4.69:1.

Should I use black or white text on #b021fd?

White. It scores 4.69:1 against #b021fd, versus 4.48:1 for black — AA at any size.

What is the complementary color of #b021fd?

#6EFD21 sits directly opposite on the wheel. Softer options are the split-complements #DCFD21 and #21FD42, which give the same contrast with far less vibration.

What colors go well with #b021fd?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #7ACC00 as an accent and #53017E for hover and pressed states. For a palette, the analogous pair #4221FD and #FD21DC stays calm, while #6EFD21 is the loudest partner.

What is #b021fd in CMYK for printing?

cmyk(30%, 87%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #b021fd warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FD21F9; nudged cooler, #5F1FFF.

Work with #b021fd in the Color Lab