#af89cd
a light, soft violet · warm · closest name: plum
RGB
175, 137, 205
HSL
274°, 41%, 67%
CMYK
15, 33, 0, 20
Luminance
0.3141
Every format
| HEX | #af89cd |
| RGB | rgb(175, 137, 205) |
| HSL | hsl(274, 41%, 67%) |
| CMYK | cmyk(15%, 33%, 0%, 20%) |
| LAB | lab(62.9 27.3 -29.7) |
| LCH | lch(62.9 40.3 312.6) |
| OKLCH | oklch(0.691 0.105 309.4) |
Copy-ready code
/* CSS */
color: #af89cd;
background-color: #af89cd;
/* Tailwind (arbitrary) */
class="text-[#af89cd] bg-[#af89cd]"
/* SCSS */
$brand: #af89cd;
/* SwiftUI */
Color(red: 0.686, green: 0.537, blue: 0.804)
/* Android */
Color.parseColor("#af89cd")Accessibility — WCAG contrast
Aa
#af89cd on white: 2.88:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af89cd on black: 7.28:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green53.7%
Blue80.4%
CMYK percentages
Cyan14.6%
Magenta33.2%
Yellow0.0%
Key (black)19.6%
Color previews
#af89cd text on a black background
contrast 7.28:1
Card sample
#af89cd text on a white background
contrast 2.88:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af89cd;
Background color
Panel with #af89cd background
background-color: #af89cd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af89cd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 137, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 137, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af89cd; background: linear-gradient(135deg, #af89cd, #CD89BE);