Skip to content

#afb7f9

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

RGB
175, 183, 249
HSL
234°, 86%, 83%
CMYK
30, 27, 0, 2
Luminance
0.4982

Every format

HEX#afb7f9
RGBrgb(175, 183, 249)
HSLhsl(234, 86%, 83%)
CMYKcmyk(30%, 27%, 0%, 2%)
LABlab(76.0 11.8 -33.6)
LCHlch(76.0 35.6 289.4)
OKLCHoklch(0.797 0.094 278.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

Cyan29.7%
Magenta26.5%
Yellow0.0%
Key (black)2.4%

Color previews

#afb7f9 text on a black background

contrast 10.96:1

Card sample

#afb7f9 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb7f9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb7f9 in the Color Lab