Skip to content

#ce9af2

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

RGB
206, 154, 242
HSL
276°, 77%, 78%
CMYK
15, 36, 0, 5
Luminance
0.4264

Every format

HEX#ce9af2
RGBrgb(206, 154, 242)
HSLhsl(276, 77%, 78%)
CMYKcmyk(15%, 36%, 0%, 5%)
LABlab(71.3 35.3 -36.8)
LCHlch(71.3 51.0 313.8)
OKLCHoklch(0.767 0.134 310.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce9af2 on white: 2.20:1
AA ✗ fail · AA-large · AAA
Aa
#ce9af2 on black: 9.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green60.4%
Blue94.9%

CMYK percentages

Cyan14.9%
Magenta36.4%
Yellow0.0%
Key (black)5.1%

Color previews

#ce9af2 text on a black background

contrast 9.53:1

Card sample

#ce9af2 text on a white background

contrast 2.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce9af2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce9af2 in the Color Lab