Skip to content

#fba2fb

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

RGB
251, 162, 251
HSL
300°, 92%, 81%
CMYK
0, 36, 0, 2
Luminance
0.5331

Every format

HEX#fba2fb
RGBrgb(251, 162, 251)
HSLhsl(300, 92%, 81%)
CMYKcmyk(0%, 36%, 0%, 2%)
LABlab(78.1 46.3 -30.8)
LCHlch(78.1 55.6 326.4)
OKLCHoklch(0.830 0.153 326.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.4%
Green63.5%
Blue98.4%

CMYK percentages

Cyan0.0%
Magenta35.5%
Yellow0.0%
Key (black)1.6%

Color previews

#fba2fb text on a black background

contrast 11.66:1

Card sample

#fba2fb text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fba2fb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fba2fb in the Color Lab