Skip to content

#afbafc

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

RGB
175, 186, 252
HSL
231°, 93%, 84%
CMYK
31, 26, 0, 1
Luminance
0.5126

Every format

HEX#afbafc
RGBrgb(175, 186, 252)
HSLhsl(231, 93%, 84%)
CMYKcmyk(31%, 26%, 0%, 1%)
LABlab(76.8 10.9 -33.8)
LCHlch(76.8 35.5 287.8)
OKLCHoklch(0.804 0.094 276.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afbafc on white: 1.87:1
AA ✗ fail · AA-large · AAA
Aa
#afbafc on black: 11.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green72.9%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta26.2%
Yellow0.0%
Key (black)1.2%

Color previews

#afbafc text on a black background

contrast 11.25:1

Card sample

#afbafc text on a white background

contrast 1.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbafc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbafc in the Color Lab