Skip to content

#c7affc

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

RGB
199, 175, 252
HSL
259°, 93%, 84%
CMYK
21, 31, 0, 1
Luminance
0.4983

Every format

HEX#c7affc
RGBrgb(199, 175, 252)
HSLhsl(259, 93%, 84%)
CMYKcmyk(21%, 31%, 0%, 1%)
LABlab(76.0 23.9 -35.0)
LCHlch(76.0 42.4 304.3)
OKLCHoklch(0.802 0.110 298.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c7affc on white: 1.91:1
AA ✗ fail · AA-large · AAA
Aa
#c7affc on black: 10.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.0%
Green68.6%
Blue98.8%

CMYK percentages

Cyan21.0%
Magenta30.6%
Yellow0.0%
Key (black)1.2%

Color previews

#c7affc text on a black background

contrast 10.97:1

Card sample

#c7affc text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c7affc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c7affc in the Color Lab