Skip to content

#ce7afb

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

RGB
206, 122, 251
HSL
279°, 94%, 73%
CMYK
18, 51, 0, 2
Luminance
0.3401

Every format

HEX#ce7afb
RGBrgb(206, 122, 251)
HSLhsl(279, 94%, 73%)
CMYKcmyk(18%, 51%, 0%, 2%)
LABlab(65.0 54.1 -51.6)
LCHlch(65.0 74.8 316.4)
OKLCHoklch(0.721 0.196 312.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ce7afb on white: 2.69:1
AA ✗ fail · AA-large · AAA
Aa
#ce7afb on black: 7.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green47.8%
Blue98.4%

CMYK percentages

Cyan17.9%
Magenta51.4%
Yellow0.0%
Key (black)1.6%

Color previews

#ce7afb text on a black background

contrast 7.80:1

Card sample

#ce7afb text on a white background

contrast 2.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ce7afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ce7afb in the Color Lab