Skip to content

#cac7ff

a pale, electric blue · warm · closest name: lavender

RGB
202, 199, 255
HSL
243°, 100%, 89%
CMYK
21, 22, 0, 0
Luminance
0.6062

Every format

HEX#cac7ff
RGBrgb(202, 199, 255)
HSLhsl(243, 100%, 89%)
CMYKcmyk(21%, 22%, 0%, 0%)
LABlab(82.2 12.4 -27.1)
LCHlch(82.2 29.8 294.6)
OKLCHoklch(0.851 0.077 287.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cac7ff on white: 1.60:1
AA ✗ fail · AA-large · AAA
Aa
#cac7ff on black: 13.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green78.0%
Blue100.0%

CMYK percentages

Cyan20.8%
Magenta22.0%
Yellow0.0%
Key (black)0.0%

Color previews

#cac7ff text on a black background

contrast 13.12:1

Card sample

#cac7ff text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cac7ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cac7ff in the Color Lab