Skip to content

#afb4ff

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

RGB
175, 180, 255
HSL
236°, 100%, 84%
CMYK
31, 29, 0, 0
Luminance
0.4898

Every format

HEX#afb4ff
RGBrgb(175, 180, 255)
HSLhsl(236, 100%, 84%)
CMYKcmyk(31%, 29%, 0%, 0%)
LABlab(75.4 14.9 -37.6)
LCHlch(75.4 40.5 291.7)
OKLCHoklch(0.794 0.106 280.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb4ff on white: 1.95:1
AA ✗ fail · AA-large · AAA
Aa
#afb4ff on black: 10.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green70.6%
Blue100.0%

CMYK percentages

Cyan31.4%
Magenta29.4%
Yellow0.0%
Key (black)0.0%

Color previews

#afb4ff text on a black background

contrast 10.80:1

Card sample

#afb4ff text on a white background

contrast 1.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb4ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb4ff in the Color Lab