Skip to content

#fba2fd

a light, electric magenta / pink · warm · closest name: violet

RGB
251, 162, 253
HSL
299°, 96%, 81%
CMYK
1, 36, 0, 1
Luminance
0.5344

Every format

HEX#fba2fd
RGBrgb(251, 162, 253)
HSLhsl(299, 96%, 81%)
CMYKcmyk(1%, 36%, 0%, 1%)
LABlab(78.1 46.7 -31.8)
LCHlch(78.1 56.5 325.8)
OKLCHoklch(0.830 0.155 326.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fba2fd on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#fba2fd on black: 11.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green63.5%
Blue99.2%

CMYK percentages

Cyan0.8%
Magenta36.0%
Yellow0.0%
Key (black)0.8%

Color previews

#fba2fd text on a black background

contrast 11.69:1

Card sample

#fba2fd text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fba2fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fba2fd in the Color Lab