Skip to content

#ccdef2

a pale, vivid blue · cool · closest name: lavender

RGB
204, 222, 242
HSL
212°, 59%, 88%
CMYK
16, 8, 0, 5
Luminance
0.7149

Every format

HEX#ccdef2
RGBrgb(204, 222, 242)
HSLhsl(212, 59%, 88%)
CMYKcmyk(16%, 8%, 0%, 5%)
LABlab(87.7 -2.0 -11.8)
LCHlch(87.7 11.9 260.4)
OKLCHoklch(0.893 0.034 251.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccdef2 on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#ccdef2 on black: 15.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green87.1%
Blue94.9%

CMYK percentages

Cyan15.7%
Magenta8.3%
Yellow0.0%
Key (black)5.1%

Color previews

#ccdef2 text on a black background

contrast 15.30:1

Card sample

#ccdef2 text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ccdef2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccdef2 in the Color Lab