Skip to content

#ce7df2

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

RGB
206, 125, 242
HSL
282°, 82%, 72%
CMYK
15, 48, 0, 5
Luminance
0.3420

Every format

HEX#ce7df2
RGBrgb(206, 125, 242)
HSLhsl(282, 82%, 72%)
CMYKcmyk(15%, 48%, 0%, 5%)
LABlab(65.1 50.7 -46.4)
LCHlch(65.1 68.8 317.5)
OKLCHoklch(0.720 0.181 314.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce7df2 on white: 2.68:1
AA ✗ fail · AA-large · AAA
Aa
#ce7df2 on black: 7.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green49.0%
Blue94.9%

CMYK percentages

Cyan14.9%
Magenta48.3%
Yellow0.0%
Key (black)5.1%

Color previews

#ce7df2 text on a black background

contrast 7.84:1

Card sample

#ce7df2 text on a white background

contrast 2.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce7df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce7df2 in the Color Lab