Skip to content

#afb7f1

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

RGB
175, 183, 241
HSL
233°, 70%, 82%
CMYK
27, 24, 0, 6
Luminance
0.4933

Every format

HEX#afb7f1
RGBrgb(175, 183, 241)
HSLhsl(233, 70%, 82%)
CMYKcmyk(27%, 24%, 0%, 6%)
LABlab(75.7 9.9 -29.7)
LCHlch(75.7 31.3 288.4)
OKLCHoklch(0.794 0.083 278.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb7f1 on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#afb7f1 on black: 10.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green71.8%
Blue94.5%

CMYK percentages

Cyan27.4%
Magenta24.1%
Yellow0.0%
Key (black)5.5%

Color previews

#afb7f1 text on a black background

contrast 10.87:1

Card sample

#afb7f1 text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb7f1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb7f1 in the Color Lab