Skip to content

#ce7fec

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

RGB
206, 127, 236
HSL
284°, 74%, 71%
CMYK
13, 46, 0, 8
Luminance
0.3436

Every format

HEX#ce7fec
RGBrgb(206, 127, 236)
HSLhsl(284, 74%, 71%)
CMYKcmyk(13%, 46%, 0%, 8%)
LABlab(65.3 48.5 -42.9)
LCHlch(65.3 64.8 318.5)
OKLCHoklch(0.720 0.172 316.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce7fec on white: 2.67:1
AA ✗ fail · AA-large · AAA
Aa
#ce7fec on black: 7.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green49.8%
Blue92.5%

CMYK percentages

Cyan12.7%
Magenta46.2%
Yellow0.0%
Key (black)7.5%

Color previews

#ce7fec text on a black background

contrast 7.87:1

Card sample

#ce7fec text on a white background

contrast 2.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 127, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 127, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ce7fec;
background: linear-gradient(135deg, #ce7fec, #EC7FC1);

Monochromatic scale

Palettes built from #ce7fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce7fec in the Color Lab