Skip to content

#a2baf2

a light, electric blue · cool · closest name: skyblue

RGB
162, 186, 242
HSL
222°, 76%, 79%
CMYK
33, 23, 0, 5
Luminance
0.4921

Every format

HEX#a2baf2
RGBrgb(162, 186, 242)
HSLhsl(222, 76%, 79%)
CMYKcmyk(33%, 23%, 0%, 5%)
LABlab(75.6 4.8 -30.4)
LCHlch(75.6 30.8 278.9)
OKLCHoklch(0.791 0.084 266.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2baf2 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#a2baf2 on black: 10.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green72.9%
Blue94.9%

CMYK percentages

Cyan33.1%
Magenta23.1%
Yellow0.0%
Key (black)5.1%

Color previews

#a2baf2 text on a black background

contrast 10.84:1

Card sample

#a2baf2 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2baf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2baf2 in the Color Lab