Skip to content

#c0afe2

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

RGB
192, 175, 226
HSL
260°, 47%, 79%
CMYK
15, 23, 0, 11
Luminance
0.4736

Every format

HEX#c0afe2
RGBrgb(192, 175, 226)
HSLhsl(260, 47%, 79%)
CMYKcmyk(15%, 23%, 0%, 11%)
LABlab(74.4 16.0 -23.4)
LCHlch(74.4 28.3 304.4)
OKLCHoklch(0.786 0.074 300.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0afe2 on white: 2.01:1
AA ✗ fail · AA-large · AAA
Aa
#c0afe2 on black: 10.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green68.6%
Blue88.6%

CMYK percentages

Cyan15.0%
Magenta22.6%
Yellow0.0%
Key (black)11.4%

Color previews

#c0afe2 text on a black background

contrast 10.47:1

Card sample

#c0afe2 text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c0afe2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0afe2 in the Color Lab