Skip to content

#afb7f8

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

RGB
175, 183, 248
HSL
233°, 84%, 83%
CMYK
29, 26, 0, 3
Luminance
0.4976

Every format

HEX#afb7f8
RGBrgb(175, 183, 248)
HSLhsl(233, 84%, 83%)
CMYKcmyk(29%, 26%, 0%, 3%)
LABlab(75.9 11.6 -33.1)
LCHlch(75.9 35.0 289.2)
OKLCHoklch(0.797 0.093 278.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb7f8 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#afb7f8 on black: 10.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green71.8%
Blue97.3%

CMYK percentages

Cyan29.4%
Magenta26.2%
Yellow0.0%
Key (black)2.7%

Color previews

#afb7f8 text on a black background

contrast 10.95:1

Card sample

#afb7f8 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb7f8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb7f8 in the Color Lab