Skip to content

#b040df

a balanced, vivid violet · warm · closest name: orchid

RGB
176, 64, 223
HSL
282°, 71%, 56%
CMYK
21, 71, 0, 13
Luminance
0.1822

Every format

HEX#b040df
RGBrgb(176, 64, 223)
HSLhsl(282, 71%, 56%)
CMYKcmyk(21%, 71%, 0%, 13%)
LABlab(49.8 68.1 -60.5)
LCHlch(49.8 91.1 318.4)
OKLCHoklch(0.597 0.237 313.8)

Copy-ready code

/* CSS */
color: #b040df;
background-color: #b040df;
/* Tailwind (arbitrary) */
class="text-[#b040df] bg-[#b040df]"
/* SCSS */
$brand: #b040df;
/* SwiftUI */
Color(red: 0.690, green: 0.251, blue: 0.875)
/* Android */
Color.parseColor("#b040df")

Accessibility — WCAG contrast

Aa
#b040df on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#b040df on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.0%
Green25.1%
Blue87.5%

CMYK percentages

Cyan21.1%
Magenta71.3%
Yellow0.0%
Key (black)12.5%

Color previews

#b040df text on a black background

contrast 4.64:1

Card sample

#b040df text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b040df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b040df in the Color Lab