Skip to content

#cf9cff

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

RGB
207, 156, 255
HSL
271°, 100%, 81%
CMYK
19, 39, 0, 0
Luminance
0.4426

Every format

HEX#cf9cff
RGBrgb(207, 156, 255)
HSLhsl(271, 100%, 81%)
CMYKcmyk(19%, 39%, 0%, 0%)
LABlab(72.4 37.3 -42.1)
LCHlch(72.4 56.2 311.5)
OKLCHoklch(0.777 0.146 307.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf9cff on white: 2.13:1
AA ✗ fail · AA-large · AAA
Aa
#cf9cff on black: 9.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green61.2%
Blue100.0%

CMYK percentages

Cyan18.8%
Magenta38.8%
Yellow0.0%
Key (black)0.0%

Color previews

#cf9cff text on a black background

contrast 9.85:1

Card sample

#cf9cff text on a white background

contrast 2.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf9cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf9cff in the Color Lab