Skip to content

#b982fd

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

RGB
185, 130, 253
HSL
267°, 97%, 75%
CMYK
27, 49, 0, 1
Luminance
0.3337

Every format

HEX#b982fd
RGBrgb(185, 130, 253)
HSLhsl(267, 97%, 75%)
CMYKcmyk(27%, 49%, 0%, 1%)
LABlab(64.5 44.9 -53.7)
LCHlch(64.5 70.0 309.9)
OKLCHoklch(0.712 0.179 302.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b982fd on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#b982fd on black: 7.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.5%
Green51.0%
Blue99.2%

CMYK percentages

Cyan26.9%
Magenta48.6%
Yellow0.0%
Key (black)0.8%

Color previews

#b982fd text on a black background

contrast 7.67:1

Card sample

#b982fd text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b982fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b982fd in the Color Lab