Skip to content

#a7afd2

a light, soft blue · warm · closest name: silver

RGB
167, 175, 210
HSL
229°, 32%, 74%
CMYK
21, 17, 0, 18
Luminance
0.4353

Every format

HEX#a7afd2
RGBrgb(167, 175, 210)
HSLhsl(229, 32%, 74%)
CMYKcmyk(21%, 17%, 0%, 18%)
LABlab(71.9 4.6 -18.6)
LCHlch(71.9 19.2 283.9)
OKLCHoklch(0.759 0.051 275.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a7afd2 on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#a7afd2 on black: 9.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red65.5%
Green68.6%
Blue82.4%

CMYK percentages

Cyan20.5%
Magenta16.7%
Yellow0.0%
Key (black)17.6%

Color previews

#a7afd2 text on a black background

contrast 9.71:1

Card sample

#a7afd2 text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a7afd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a7afd2 in the Color Lab