#ac98df
a light, vivid violet · warm · closest name: plum
RGB
172, 152, 223
HSL
257°, 53%, 74%
CMYK
23, 32, 0, 13
Luminance
0.3655
Every format
| HEX | #ac98df |
| RGB | rgb(172, 152, 223) |
| HSL | hsl(257, 53%, 74%) |
| CMYK | cmyk(23%, 32%, 0%, 13%) |
| LAB | lab(66.9 22.0 -33.4) |
| LCH | lch(66.9 40.0 303.4) |
| OKLCH | oklch(0.724 0.103 296.7) |
Copy-ready code
/* CSS */
color: #ac98df;
background-color: #ac98df;
/* Tailwind (arbitrary) */
class="text-[#ac98df] bg-[#ac98df]"
/* SCSS */
$brand: #ac98df;
/* SwiftUI */
Color(red: 0.675, green: 0.596, blue: 0.875)
/* Android */
Color.parseColor("#ac98df")Accessibility — WCAG contrast
Aa
#ac98df on white: 2.53:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ac98df on black: 8.31:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green59.6%
Blue87.5%
CMYK percentages
Cyan22.9%
Magenta31.8%
Yellow0.0%
Key (black)12.5%
Color previews
#ac98df text on a black background
contrast 8.31:1
Card sample
#ac98df text on a white background
contrast 2.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac98df;
Background color
Panel with #ac98df background
background-color: #ac98df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac98df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 152, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 152, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac98df; background: linear-gradient(135deg, #ac98df, #DB98DF);