Skip to content

#c0afeb

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

RGB
192, 175, 235
HSL
257°, 60%, 80%
CMYK
18, 26, 0, 8
Luminance
0.4786

Every format

HEX#c0afeb
RGBrgb(192, 175, 235)
HSLhsl(257, 60%, 80%)
CMYKcmyk(18%, 26%, 0%, 8%)
LABlab(74.7 18.0 -27.8)
LCHlch(74.7 33.1 302.9)
OKLCHoklch(0.789 0.086 297.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0afeb on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#c0afeb on black: 10.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green68.6%
Blue92.2%

CMYK percentages

Cyan18.3%
Magenta25.5%
Yellow0.0%
Key (black)7.8%

Color previews

#c0afeb text on a black background

contrast 10.57:1

Card sample

#c0afeb text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 175, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 175, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c0afeb;
background: linear-gradient(135deg, #c0afeb, #E8AFEB);

Monochromatic scale

Palettes built from #c0afeb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0afeb in the Color Lab