Skip to content

#ce97ff

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

RGB
206, 151, 255
HSL
272°, 100%, 80%
CMYK
19, 41, 0, 0
Luminance
0.4248

Every format

HEX#ce97ff
RGBrgb(206, 151, 255)
HSLhsl(272, 100%, 80%)
CMYKcmyk(19%, 41%, 0%, 0%)
LABlab(71.2 39.7 -44.0)
LCHlch(71.2 59.3 312.1)
OKLCHoklch(0.768 0.154 307.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce97ff on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#ce97ff on black: 9.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green59.2%
Blue100.0%

CMYK percentages

Cyan19.2%
Magenta40.8%
Yellow0.0%
Key (black)0.0%

Color previews

#ce97ff text on a black background

contrast 9.50:1

Card sample

#ce97ff text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce97ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce97ff in the Color Lab