Skip to content

#cfaffb

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

RGB
207, 175, 251
HSL
265°, 91%, 84%
CMYK
18, 30, 0, 2
Luminance
0.5089

Every format

HEX#cfaffb
RGBrgb(207, 175, 251)
HSLhsl(265, 91%, 84%)
CMYKcmyk(18%, 30%, 0%, 2%)
LABlab(76.6 26.1 -33.4)
LCHlch(76.6 42.4 307.9)
OKLCHoklch(0.809 0.110 303.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfaffb on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#cfaffb on black: 11.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green68.6%
Blue98.4%

CMYK percentages

Cyan17.5%
Magenta30.3%
Yellow0.0%
Key (black)1.6%

Color previews

#cfaffb text on a black background

contrast 11.18:1

Card sample

#cfaffb text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfaffb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfaffb in the Color Lab