Skip to content

#b417df

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

RGB
180, 23, 223
HSL
287°, 81%, 48%
CMYK
19, 90, 0, 13
Luminance
0.1564

At a glance

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

Hex
#b417df
Hue
287°
violet
Saturation
81%
electric
Lightness
48%
balanced
Brightness
87%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1564
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.09:1
Closest name
Dark Orchid
ΔE2000 4.6
Where it sits
Hue287° of 360°
Saturation81%
Lightness48%
Temperature
Warm ← → Cool57% 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#b417df
RGBrgb(180, 23, 223)
HSLhsl(287, 81%, 48%)
CMYKcmyk(19%, 90%, 0%, 13%)
LABlab(46.5 80.0 -65.8)
LCHlch(46.5 103.6 320.6)
OKLCHoklch(0.575 0.271 316.7)
Decimal11802591
Display P3color(display-p3 0.706 0.090 0.875)

Copy-ready code

/* CSS */
color: #b417df;
background-color: #b417df;
/* Tailwind (arbitrary) */
class="text-[#b417df] bg-[#b417df]"
/* SCSS */
$brand: #b417df;
/* SwiftUI */
Color(red: 0.706, green: 0.090, blue: 0.875)
/* Android */
Color.parseColor("#b417df")
/* Flutter */
Color(0xFFB417DF)
/* Python / OpenCV (BGR) */
(223, 23, 180)

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

Accessibility — WCAG contrast

Aa
#b417df on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#b417df on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066E4
deuteranopia · #1472DB
tritanopia · #B15084

Color scale — 50 to 950

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

#FAF2FC
#F5E6F9
#EBC6F6
#E199F5
#D266EF
#C334EA
#b417df
#9513B9
#770F94
#570F6B
#370A43
Base = 600Lightest = 50 · #FAF2FCDarkest = 950 · #370A43
:root {
  --brand-50: #FAF2FC;
  --brand-100: #F5E6F9;
  --brand-200: #EBC6F6;
  --brand-300: #E199F5;
  --brand-400: #D266EF;
  --brand-500: #C334EA;
  --brand-600: #b417df;
  --brand-700: #9513B9;
  --brand-800: #770F94;
  --brand-900: #570F6B;
  --brand-950: #370A43;
  --brand: #b417df;
  --brand-ink: #ffffff;
}

Colors that work with #b417df

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#E3C0ED
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#60BD0F
Second voice, not a rival
Dark variant#5D0C74
Hover, pressed, headers
Light variant#F8E8FD
Selected rows, tints
Dark surface#211424
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 #b417df

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#42DF17
Analogous left#5017DF
Analogous right#DF17A6
Split-complement 1#A6DF17
Split-complement 2#17DF50
Triadic 1#DFB417
Triadic 2#17DFB4
Tetradic#DF5017

RGB percentages

Red70.6%
Green9.0%
Blue87.5%

CMYK percentages

Cyan19.3%
Magenta89.7%
Yellow0.0%
Key (black)12.5%

Color previews

#b417df text on a black background

contrast 4.13:1

Card sample

#b417df text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 23, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 23, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b417df;
background: linear-gradient(135deg, #b417df, #DF1785);

Monochromatic scale

Palettes built from #b417df

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.

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

#b417df, answered

What color is #b417df?

#b417df is a balanced electric violet, closest to Dark Orchid (ΔE2000 4.6). It sits at 287° on the hue wheel with 81% saturation and 48% lightness, which reads as neutral.

What is the RGB value of #b417df?

rgb(180, 23, 223) — 180 red, 23 green and 223 blue out of 255, or 70.6% / 9% / 87.5% by channel.

Is #b417df a light or a dark color?

It is a dark color. Relative luminance is 0.1564 and perceived brightness is 49%, so white text on it reaches 5.09:1.

Should I use black or white text on #b417df?

White. It scores 5.09:1 against #b417df, versus 4.13:1 for black — AA at any size.

What is the complementary color of #b417df?

#42DF17 sits directly opposite on the wheel. Softer options are the split-complements #A6DF17 and #17DF50, which give the same contrast with far less vibration.

What colors go well with #b417df?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #60BD0F as an accent and #5D0C74 for hover and pressed states. For a palette, the analogous pair #5017DF and #DF17A6 stays calm, while #42DF17 is the loudest partner.

What is #b417df in CMYK for printing?

cmyk(19%, 90%, 0%, 13%). 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 #b417df warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF17C1; nudged cooler, #6A15E1.

Work with #b417df in the Color Lab