#af90ff
a light, electric violet · warm · closest name: slateblue
RGB
175, 144, 255
HSL
257°, 100%, 78%
CMYK
31, 44, 0, 0
Luminance
0.3628
Every format
| HEX | #af90ff |
| RGB | rgb(175, 144, 255) |
| HSL | hsl(257, 100%, 78%) |
| CMYK | cmyk(31%, 44%, 0%, 0%) |
| LAB | lab(66.7 35.1 -51.2) |
| LCH | lch(66.7 62.1 304.4) |
| OKLCH | oklch(0.727 0.159 295.0) |
Copy-ready code
/* CSS */
color: #af90ff;
background-color: #af90ff;
/* Tailwind (arbitrary) */
class="text-[#af90ff] bg-[#af90ff]"
/* SCSS */
$brand: #af90ff;
/* SwiftUI */
Color(red: 0.686, green: 0.565, blue: 1.000)
/* Android */
Color.parseColor("#af90ff")Accessibility — WCAG contrast
Aa
#af90ff on white: 2.54:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af90ff on black: 8.26:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green56.5%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta43.5%
Yellow0.0%
Key (black)0.0%
Color previews
#af90ff text on a black background
contrast 8.26:1
Card sample
#af90ff text on a white background
contrast 2.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af90ff;
Background color
Panel with #af90ff background
background-color: #af90ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af90ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 144, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 144, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af90ff; background: linear-gradient(135deg, #af90ff, #F990FF);