Skip to content

#b509ff

a balanced, electric violet · warm · closest name: magenta

RGB
181, 9, 255
HSL
282°, 100%, 52%
CMYK
29, 97, 0, 0
Luminance
0.1724

Every format

HEX#b509ff
RGBrgb(181, 9, 255)
HSLhsl(282, 100%, 52%)
CMYKcmyk(29%, 97%, 0%, 0%)
LABlab(48.6 87.5 -80.4)
LCHlch(48.6 118.8 317.4)
OKLCHoklch(0.597 0.299 310.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b509ff on white: 4.72:1
AA ✓ pass · AA-large · AAA
Aa
#b509ff on black: 4.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red71.0%
Green3.5%
Blue100.0%

CMYK percentages

Cyan29.0%
Magenta96.5%
Yellow0.0%
Key (black)0.0%

Color previews

#b509ff text on a black background

contrast 4.45:1

Card sample

#b509ff text on a white background

contrast 4.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(181, 9, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(181, 9, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b509ff;
background: linear-gradient(135deg, #b509ff, #FF09A5);

Monochromatic scale

Palettes built from #b509ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b509ff in the Color Lab