Skip to content

#cfbef2

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

RGB
207, 190, 242
HSL
260°, 67%, 85%
CMYK
15, 22, 0, 5
Luminance
0.5650

Every format

HEX#cfbef2
RGBrgb(207, 190, 242)
HSLhsl(260, 67%, 85%)
CMYKcmyk(15%, 22%, 0%, 5%)
LABlab(79.9 16.0 -23.5)
LCHlch(79.9 28.4 304.1)
OKLCHoklch(0.833 0.074 299.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfbef2 on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#cfbef2 on black: 12.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green74.5%
Blue94.9%

CMYK percentages

Cyan14.5%
Magenta21.5%
Yellow0.0%
Key (black)5.1%

Color previews

#cfbef2 text on a black background

contrast 12.30:1

Card sample

#cfbef2 text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfbef2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfbef2 in the Color Lab