#af90fa
a light, electric violet · warm · closest name: slateblue
RGB
175, 144, 250
HSL
258°, 91%, 77%
CMYK
30, 42, 0, 2
Luminance
0.3596
Every format
| HEX | #af90fa |
| RGB | rgb(175, 144, 250) |
| HSL | hsl(258, 91%, 77%) |
| CMYK | cmyk(30%, 42%, 0%, 2%) |
| LAB | lab(66.5 33.9 -48.9) |
| LCH | lch(66.5 59.5 304.7) |
| OKLCH | oklch(0.725 0.152 295.8) |
Copy-ready code
/* CSS */
color: #af90fa;
background-color: #af90fa;
/* Tailwind (arbitrary) */
class="text-[#af90fa] bg-[#af90fa]"
/* SCSS */
$brand: #af90fa;
/* SwiftUI */
Color(red: 0.686, green: 0.565, blue: 0.980)
/* Android */
Color.parseColor("#af90fa")Accessibility — WCAG contrast
Aa
#af90fa on white: 2.56:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af90fa on black: 8.19:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green56.5%
Blue98.0%
CMYK percentages
Cyan30.0%
Magenta42.4%
Yellow0.0%
Key (black)2.0%
Color previews
#af90fa text on a black background
contrast 8.19:1
Card sample
#af90fa text on a white background
contrast 2.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af90fa;
Background color
Panel with #af90fa background
background-color: #af90fa;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af90fa;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 144, 250, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 144, 250, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af90fa; background: linear-gradient(135deg, #af90fa, #F690FA);