Skip to content

#afaffb

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

RGB
175, 175, 251
HSL
240°, 91%, 84%
CMYK
30, 30, 0, 2
Luminance
0.4674

Every format

HEX#afaffb
RGBrgb(175, 175, 251)
HSLhsl(240, 91%, 84%)
CMYKcmyk(30%, 30%, 0%, 2%)
LABlab(74.0 16.7 -37.6)
LCHlch(74.0 41.2 294.0)
OKLCHoklch(0.782 0.108 283.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afaffb on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#afaffb on black: 10.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green68.6%
Blue98.4%

CMYK percentages

Cyan30.3%
Magenta30.3%
Yellow0.0%
Key (black)1.6%

Color previews

#afaffb text on a black background

contrast 10.35:1

Card sample

#afaffb text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afaffb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afaffb in the Color Lab