Skip to content

#b261f9

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

RGB
178, 97, 249
HSL
272°, 93%, 68%
CMYK
29, 61, 0, 2
Luminance
0.2485

Every format

HEX#b261f9
RGBrgb(178, 97, 249)
HSLhsl(272, 93%, 68%)
CMYKcmyk(29%, 61%, 0%, 2%)
LABlab(56.9 59.5 -63.5)
LCHlch(56.9 87.0 313.1)
OKLCHoklch(0.654 0.221 305.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b261f9 on white: 3.52:1
AA ✗ fail · AA-large · AAA
Aa
#b261f9 on black: 5.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green38.0%
Blue97.6%

CMYK percentages

Cyan28.5%
Magenta61.0%
Yellow0.0%
Key (black)2.4%

Color previews

#b261f9 text on a black background

contrast 5.97:1

Card sample

#b261f9 text on a white background

contrast 3.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b261f9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b261f9 in the Color Lab