Skip to content

#8a8af3

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

RGB
138, 138, 243
HSL
240°, 81%, 75%
CMYK
43, 43, 0, 5
Luminance
0.3005

Every format

HEX#8a8af3
RGBrgb(138, 138, 243)
HSLhsl(240, 81%, 75%)
CMYKcmyk(43%, 43%, 0%, 5%)
LABlab(61.7 26.0 -52.8)
LCHlch(61.7 58.9 296.2)
OKLCHoklch(0.680 0.152 281.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a8af3 on white: 3.00:1
AA ✗ fail · AA-large · AAA
Aa
#8a8af3 on black: 7.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red54.1%
Green54.1%
Blue95.3%

CMYK percentages

Cyan43.2%
Magenta43.2%
Yellow0.0%
Key (black)4.7%

Color previews

#8a8af3 text on a black background

contrast 7.01:1

Card sample

#8a8af3 text on a white background

contrast 3.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a8af3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8a8af3 in the Color Lab