Skip to content

#afbaf9

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

RGB
175, 186, 249
HSL
231°, 86%, 83%
CMYK
30, 25, 0, 2
Luminance
0.5107

Every format

HEX#afbaf9
RGBrgb(175, 186, 249)
HSLhsl(231, 86%, 83%)
CMYKcmyk(30%, 25%, 0%, 2%)
LABlab(76.7 10.2 -32.4)
LCHlch(76.7 33.9 287.4)
OKLCHoklch(0.803 0.090 276.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green72.9%
Blue97.6%

CMYK percentages

Cyan29.7%
Magenta25.3%
Yellow0.0%
Key (black)2.4%

Color previews

#afbaf9 text on a black background

contrast 11.21:1

Card sample

#afbaf9 text on a white background

contrast 1.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afbaf9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afbaf9 in the Color Lab