Skip to content

#fba2f7

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

RGB
251, 162, 247
HSL
303°, 92%, 81%
CMYK
0, 36, 2, 2
Luminance
0.5307

Every format

HEX#fba2f7
RGBrgb(251, 162, 247)
HSLhsl(303, 92%, 81%)
CMYKcmyk(0%, 36%, 2%, 2%)
LABlab(77.9 45.6 -28.9)
LCHlch(77.9 54.0 327.7)
OKLCHoklch(0.828 0.150 328.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fba2f7 on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#fba2f7 on black: 11.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green63.5%
Blue96.9%

CMYK percentages

Cyan0.0%
Magenta35.5%
Yellow1.6%
Key (black)1.6%

Color previews

#fba2f7 text on a black background

contrast 11.61:1

Card sample

#fba2f7 text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fba2f7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fba2f7 in the Color Lab