Skip to content

#cf95fc

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

RGB
207, 149, 252
HSL
274°, 95%, 79%
CMYK
18, 41, 0, 1
Luminance
0.4179

Every format

HEX#cf95fc
RGBrgb(207, 149, 252)
HSLhsl(274, 95%, 79%)
CMYKcmyk(18%, 41%, 0%, 1%)
LABlab(70.7 40.4 -43.1)
LCHlch(70.7 59.1 313.2)
OKLCHoklch(0.764 0.154 309.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf95fc on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#cf95fc on black: 9.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green58.4%
Blue98.8%

CMYK percentages

Cyan17.9%
Magenta40.9%
Yellow0.0%
Key (black)1.2%

Color previews

#cf95fc text on a black background

contrast 9.36:1

Card sample

#cf95fc text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 149, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 149, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cf95fc;
background: linear-gradient(135deg, #cf95fc, #FC95E4);

Monochromatic scale

Palettes built from #cf95fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf95fc in the Color Lab