Skip to content

#afb0f8

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

RGB
175, 176, 248
HSL
239°, 84%, 83%
CMYK
29, 29, 0, 3
Luminance
0.4694

Every format

HEX#afb0f8
RGBrgb(175, 176, 248)
HSLhsl(239, 84%, 83%)
CMYKcmyk(29%, 29%, 0%, 3%)
LABlab(74.2 15.4 -35.8)
LCHlch(74.2 39.0 293.3)
OKLCHoklch(0.783 0.102 283.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb0f8 on white: 2.02:1
AA ✗ fail · AA-large · AAA
Aa
#afb0f8 on black: 10.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green69.0%
Blue97.3%

CMYK percentages

Cyan29.4%
Magenta29.0%
Yellow0.0%
Key (black)2.7%

Color previews

#afb0f8 text on a black background

contrast 10.39:1

Card sample

#afb0f8 text on a white background

contrast 2.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb0f8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb0f8 in the Color Lab