Skip to content

#ce7af0

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

RGB
206, 122, 240
HSL
283°, 80%, 71%
CMYK
14, 49, 0, 6
Luminance
0.3333

Every format

HEX#ce7af0
RGBrgb(206, 122, 240)
HSLhsl(283, 80%, 71%)
CMYKcmyk(14%, 49%, 0%, 6%)
LABlab(64.4 51.9 -46.4)
LCHlch(64.4 69.6 318.2)
OKLCHoklch(0.715 0.184 315.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce7af0 on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#ce7af0 on black: 7.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green47.8%
Blue94.1%

CMYK percentages

Cyan14.2%
Magenta49.2%
Yellow0.0%
Key (black)5.9%

Color previews

#ce7af0 text on a black background

contrast 7.67:1

Card sample

#ce7af0 text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce7af0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce7af0 in the Color Lab