Skip to content

#cf92fc

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

RGB
207, 146, 252
HSL
275°, 95%, 78%
CMYK
18, 42, 0, 1
Luminance
0.4085

Every format

HEX#cf92fc
RGBrgb(207, 146, 252)
HSLhsl(275, 95%, 78%)
CMYKcmyk(18%, 42%, 0%, 1%)
LABlab(70.1 42.0 -44.1)
LCHlch(70.1 60.9 313.6)
OKLCHoklch(0.759 0.159 309.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf92fc on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#cf92fc on black: 9.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green57.3%
Blue98.8%

CMYK percentages

Cyan17.9%
Magenta42.1%
Yellow0.0%
Key (black)1.2%

Color previews

#cf92fc text on a black background

contrast 9.17:1

Card sample

#cf92fc text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf92fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf92fc in the Color Lab