Skip to content

#af5fc2

a balanced, soft violet · warm · closest name: orchid

RGB
175, 95, 194
HSL
289°, 45%, 57%
CMYK
10, 51, 0, 24
Luminance
0.2119

Every format

HEX#af5fc2
RGBrgb(175, 95, 194)
HSLhsl(289, 45%, 57%)
CMYKcmyk(10%, 51%, 0%, 24%)
LABlab(53.2 47.9 -38.5)
LCHlch(53.2 61.5 321.2)
OKLCHoklch(0.616 0.165 319.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5fc2 on white: 4.01:1
AA ✗ fail · AA-large · AAA
Aa
#af5fc2 on black: 5.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green37.3%
Blue76.1%

CMYK percentages

Cyan9.8%
Magenta51.0%
Yellow0.0%
Key (black)23.9%

Color previews

#af5fc2 text on a black background

contrast 5.24:1

Card sample

#af5fc2 text on a white background

contrast 4.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5fc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af5fc2 in the Color Lab