Skip to content

#f2baff

a pale, electric violet · warm · closest name: plum

RGB
242, 186, 255
HSL
289°, 100%, 87%
CMYK
5, 27, 0, 0
Luminance
0.6122

Every format

HEX#f2baff
RGBrgb(242, 186, 255)
HSLhsl(289, 100%, 87%)
CMYKcmyk(5%, 27%, 0%, 0%)
LABlab(82.5 31.7 -26.3)
LCHlch(82.5 41.2 320.4)
OKLCHoklch(0.862 0.111 319.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2baff on white: 1.59:1
AA ✗ fail · AA-large · AAA
Aa
#f2baff on black: 13.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green72.9%
Blue100.0%

CMYK percentages

Cyan5.1%
Magenta27.1%
Yellow0.0%
Key (black)0.0%

Color previews

#f2baff text on a black background

contrast 13.24:1

Card sample

#f2baff text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 186, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 186, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2baff;
background: linear-gradient(135deg, #f2baff, #FFBADE);

Monochromatic scale

Palettes built from #f2baff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2baff in the Color Lab