Skip to content

#b261f0

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

RGB
178, 97, 240
HSL
274°, 83%, 66%
CMYK
26, 60, 0, 6
Luminance
0.2431

Every format

HEX#b261f0
RGBrgb(178, 97, 240)
HSLhsl(274, 83%, 66%)
CMYKcmyk(26%, 60%, 0%, 6%)
LABlab(56.4 57.5 -59.4)
LCHlch(56.4 82.7 314.0)
OKLCHoklch(0.649 0.212 307.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b261f0 on white: 3.58:1
AA ✗ fail · AA-large · AAA
Aa
#b261f0 on black: 5.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green38.0%
Blue94.1%

CMYK percentages

Cyan25.8%
Magenta59.6%
Yellow0.0%
Key (black)5.9%

Color previews

#b261f0 text on a black background

contrast 5.86:1

Card sample

#b261f0 text on a white background

contrast 3.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b261f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b261f0 in the Color Lab