Skip to content

#afb7f0

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

RGB
175, 183, 240
HSL
233°, 68%, 81%
CMYK
27, 24, 0, 6
Luminance
0.4927

Every format

HEX#afb7f0
RGBrgb(175, 183, 240)
HSLhsl(233, 68%, 81%)
CMYKcmyk(27%, 24%, 0%, 6%)
LABlab(75.6 9.6 -29.2)
LCHlch(75.6 30.8 288.2)
OKLCHoklch(0.793 0.081 278.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green71.8%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta23.8%
Yellow0.0%
Key (black)5.9%

Color previews

#afb7f0 text on a black background

contrast 10.85:1

Card sample

#afb7f0 text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb7f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb7f0 in the Color Lab