Skip to content

#af7bee

a light, electric violet · warm · closest name: slateblue

RGB
175, 123, 238
HSL
267°, 77%, 71%
CMYK
27, 48, 0, 7
Luminance
0.2945

Every format

HEX#af7bee
RGBrgb(175, 123, 238)
HSLhsl(267, 77%, 71%)
CMYKcmyk(27%, 48%, 0%, 7%)
LABlab(61.2 42.6 -50.7)
LCHlch(61.2 66.2 310.1)
OKLCHoklch(0.683 0.170 303.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7bee on white: 3.05:1
AA ✗ fail · AA-large · AAA
Aa
#af7bee on black: 6.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green48.2%
Blue93.3%

CMYK percentages

Cyan26.5%
Magenta48.3%
Yellow0.0%
Key (black)6.7%

Color previews

#af7bee text on a black background

contrast 6.89:1

Card sample

#af7bee text on a white background

contrast 3.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7bee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7bee in the Color Lab