Skip to content

#cf86f2

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

RGB
207, 134, 242
HSL
281°, 81%, 74%
CMYK
15, 45, 0, 5
Luminance
0.3673

Every format

HEX#cf86f2
RGBrgb(207, 134, 242)
HSLhsl(281, 81%, 74%)
CMYKcmyk(15%, 45%, 0%, 5%)
LABlab(67.1 46.3 -43.4)
LCHlch(67.1 63.5 316.9)
OKLCHoklch(0.735 0.167 314.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf86f2 on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#cf86f2 on black: 8.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green52.5%
Blue94.9%

CMYK percentages

Cyan14.5%
Magenta44.6%
Yellow0.0%
Key (black)5.1%

Color previews

#cf86f2 text on a black background

contrast 8.35:1

Card sample

#cf86f2 text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf86f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf86f2 in the Color Lab