Skip to content

#c2baf1

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

RGB
194, 186, 241
HSL
249°, 66%, 84%
CMYK
20, 23, 0, 6
Luminance
0.5294

Every format

HEX#c2baf1
RGBrgb(194, 186, 241)
HSLhsl(249, 66%, 84%)
CMYKcmyk(20%, 23%, 0%, 6%)
LABlab(77.8 13.9 -26.2)
LCHlch(77.8 29.7 297.9)
OKLCHoklch(0.814 0.077 291.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c2baf1 on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#c2baf1 on black: 11.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.1%
Green72.9%
Blue94.5%

CMYK percentages

Cyan19.5%
Magenta22.8%
Yellow0.0%
Key (black)5.5%

Color previews

#c2baf1 text on a black background

contrast 11.59:1

Card sample

#c2baf1 text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 186, 241, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 186, 241, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2baf1;
background: linear-gradient(135deg, #c2baf1, #E7BAF1);

Monochromatic scale

Palettes built from #c2baf1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2baf1 in the Color Lab