Skip to content

#ce9afb

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

RGB
206, 154, 251
HSL
272°, 92%, 79%
CMYK
18, 39, 0, 2
Luminance
0.4320

Every format

HEX#ce9afb
RGBrgb(206, 154, 251)
HSLhsl(272, 92%, 79%)
CMYKcmyk(18%, 39%, 0%, 2%)
LABlab(71.7 37.2 -41.1)
LCHlch(71.7 55.4 312.2)
OKLCHoklch(0.771 0.144 308.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce9afb on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#ce9afb on black: 9.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green60.4%
Blue98.4%

CMYK percentages

Cyan17.9%
Magenta38.6%
Yellow0.0%
Key (black)1.6%

Color previews

#ce9afb text on a black background

contrast 9.64:1

Card sample

#ce9afb text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce9afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce9afb in the Color Lab