Skip to content

#b20dfd

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

RGB
178, 13, 253
HSL
281°, 98%, 52%
CMYK
30, 95, 0, 1
Luminance
0.1684

At a glance

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

Hex
#b20dfd
Hue
281°
violet
Saturation
98%
electric
Lightness
52%
balanced
Brightness
99%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1684
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.81:1
Closest name
Dark Orchid
ΔE2000 6.9
Where it sits
Hue281° of 360°
Saturation98%
Lightness52%
Temperature
Warm ← → Cool60% 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#b20dfd
RGBrgb(178, 13, 253)
HSLhsl(281, 98%, 52%)
CMYKcmyk(30%, 95%, 0%, 1%)
LABlab(48.1 86.4 -80.2)
LCHlch(48.1 117.8 317.1)
OKLCHoklch(0.593 0.296 309.6)
Decimal11668989
Display P3color(display-p3 0.698 0.051 0.992)

Copy-ready code

/* CSS */
color: #b20dfd;
background-color: #b20dfd;
/* Tailwind (arbitrary) */
class="text-[#b20dfd] bg-[#b20dfd]"
/* SCSS */
$brand: #b20dfd;
/* SwiftUI */
Color(red: 0.698, green: 0.051, blue: 0.992)
/* Android */
Color.parseColor("#b20dfd")
/* Flutter */
Color(0xFFB20DFD)
/* Python / OpenCV (BGR) */
(253, 13, 178)

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

Accessibility — WCAG contrast

Aa
#b20dfd on white: 4.81:1
AA ✓ pass · AA-large · AAA
Aa
#b20dfd on black: 4.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006DFF
deuteranopia · #0074F9
tritanopia · #A65F96

Color scale — 50 to 950

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

#FAF1FE
#F4E3FC
#E9C1FB
#DC90FE
#CA58FE
#b20dfd
#A802F3
#8C02CA
#7001A2
#520675
#330449
Base = 500Lightest = 50 · #FAF1FEDarkest = 950 · #330449
:root {
  --brand-50: #FAF1FE;
  --brand-100: #F4E3FC;
  --brand-200: #E9C1FB;
  --brand-300: #DC90FE;
  --brand-400: #CA58FE;
  --brand-500: #b20dfd;
  --brand-600: #A802F3;
  --brand-700: #8C02CA;
  --brand-800: #7001A2;
  --brand-900: #520675;
  --brand-950: #330449;
  --brand: #b20dfd;
  --brand-ink: #ffffff;
}

Colors that work with #b20dfd

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#F9F4FA
Tinted page background
Border#DFC0ED
Hairlines and dividers
Muted text#824B9B
Captions on the surface
Accent#73CC00
Second voice, not a rival
Dark variant#57017E
Hover, pressed, headers
Light variant#F7E6FF
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 #b20dfd

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#58FD0D
Analogous left#3A0DFD
Analogous right#FD0DD0
Split-complement 1#D0FD0D
Split-complement 2#0DFD3A
Triadic 1#FDB20D
Triadic 2#0DFDB2
Tetradic#FD3A0D

RGB percentages

Red69.8%
Green5.1%
Blue99.2%

CMYK percentages

Cyan29.6%
Magenta94.9%
Yellow0.0%
Key (black)0.8%

Color previews

#b20dfd text on a black background

contrast 4.37:1

Card sample

#b20dfd text on a white background

contrast 4.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b20dfd

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.

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

#b20dfd, answered

What color is #b20dfd?

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

What is the RGB value of #b20dfd?

rgb(178, 13, 253) — 178 red, 13 green and 253 blue out of 255, or 69.8% / 5.1% / 99.2% by channel.

Is #b20dfd a light or a dark color?

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

Should I use black or white text on #b20dfd?

White. It scores 4.81:1 against #b20dfd, versus 4.37:1 for black — AA at any size.

What is the complementary color of #b20dfd?

#58FD0D sits directly opposite on the wheel. Softer options are the split-complements #D0FD0D and #0DFD3A, which give the same contrast with far less vibration.

What colors go well with #b20dfd?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #824B9B for secondary text, #73CC00 as an accent and #57017E for hover and pressed states. For a palette, the analogous pair #3A0DFD and #FD0DD0 stays calm, while #58FD0D is the loudest partner.

What is #b20dfd in CMYK for printing?

cmyk(30%, 95%, 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 #b20dfd warm or cool?

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

Work with #b20dfd in the Color Lab