Skip to content

#cf8af9

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

RGB
207, 138, 249
HSL
277°, 90%, 76%
CMYK
17, 45, 0, 2
Luminance
0.3828

Every format

HEX#cf8af9
RGBrgb(207, 138, 249)
HSLhsl(277, 90%, 76%)
CMYKcmyk(17%, 45%, 0%, 2%)
LABlab(68.2 45.7 -45.4)
LCHlch(68.2 64.4 315.2)
OKLCHoklch(0.745 0.169 311.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cf8af9 on white: 2.43:1
AA ✗ fail · AA-large · AAA
Aa
#cf8af9 on black: 8.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green54.1%
Blue97.6%

CMYK percentages

Cyan16.9%
Magenta44.6%
Yellow0.0%
Key (black)2.4%

Color previews

#cf8af9 text on a black background

contrast 8.66:1

Card sample

#cf8af9 text on a white background

contrast 2.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cf8af9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cf8af9 in the Color Lab