Skip to content

#af7fdb

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

RGB
175, 127, 219
HSL
271°, 56%, 68%
CMYK
20, 42, 0, 14
Luminance
0.2941

Every format

HEX#af7fdb
RGBrgb(175, 127, 219)
HSLhsl(271, 56%, 68%)
CMYKcmyk(20%, 42%, 0%, 14%)
LABlab(61.1 36.0 -40.2)
LCHlch(61.1 54.0 311.9)
OKLCHoklch(0.680 0.140 307.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green49.8%
Blue85.9%

CMYK percentages

Cyan20.1%
Magenta42.0%
Yellow0.0%
Key (black)14.1%

Color previews

#af7fdb text on a black background

contrast 6.88:1

Card sample

#af7fdb text on a white background

contrast 3.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7fdb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af7fdb in the Color Lab