Skip to content

#af7ce4

a light, vivid violet · warm · closest name: orchid

RGB
175, 124, 228
HSL
269°, 66%, 69%
CMYK
23, 46, 0, 11
Luminance
0.2913

Every format

HEX#af7ce4
RGBrgb(175, 124, 228)
HSLhsl(269, 66%, 69%)
CMYKcmyk(23%, 46%, 0%, 11%)
LABlab(60.9 39.7 -45.6)
LCHlch(60.9 60.5 311.1)
OKLCHoklch(0.679 0.156 305.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7ce4 on white: 3.08:1
AA ✗ fail · AA-large · AAA
Aa
#af7ce4 on black: 6.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green48.6%
Blue89.4%

CMYK percentages

Cyan23.2%
Magenta45.6%
Yellow0.0%
Key (black)10.6%

Color previews

#af7ce4 text on a black background

contrast 6.83:1

Card sample

#af7ce4 text on a white background

contrast 3.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7ce4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7ce4 in the Color Lab