Skip to content

#c2baf4

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

RGB
194, 186, 244
HSL
248°, 73%, 84%
CMYK
21, 24, 0, 4
Luminance
0.5312

Every format

HEX#c2baf4
RGBrgb(194, 186, 244)
HSLhsl(248, 73%, 84%)
CMYKcmyk(21%, 24%, 0%, 4%)
LABlab(77.9 14.6 -27.7)
LCHlch(77.9 31.3 297.7)
OKLCHoklch(0.815 0.081 290.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red76.1%
Green72.9%
Blue95.7%

CMYK percentages

Cyan20.5%
Magenta23.8%
Yellow0.0%
Key (black)4.3%

Color previews

#c2baf4 text on a black background

contrast 11.62:1

Card sample

#c2baf4 text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c2baf4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2baf4 in the Color Lab