Skip to content

#b261fd

a light, electric violet · warm · closest name: slateblue

RGB
178, 97, 253
HSL
271°, 98%, 69%
CMYK
30, 62, 0, 1
Luminance
0.2511

Every format

HEX#b261fd
RGBrgb(178, 97, 253)
HSLhsl(271, 98%, 69%)
CMYKcmyk(30%, 62%, 0%, 1%)
LABlab(57.2 60.4 -65.4)
LCHlch(57.2 89.0 312.7)
OKLCHoklch(0.657 0.226 304.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b261fd on white: 3.49:1
AA ✗ fail · AA-large · AAA
Aa
#b261fd on black: 6.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green38.0%
Blue99.2%

CMYK percentages

Cyan29.6%
Magenta61.7%
Yellow0.0%
Key (black)0.8%

Color previews

#b261fd text on a black background

contrast 6.02:1

Card sample

#b261fd text on a white background

contrast 3.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b261fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b261fd in the Color Lab