#978af2
a light, electric blue · warm · closest name: slateblue
RGB
151, 138, 242
HSL
248°, 80%, 75%
CMYK
38, 43, 0, 5
Luminance
0.3117
Every format
| HEX | #978af2 |
| RGB | rgb(151, 138, 242) |
| HSL | hsl(248, 80%, 75%) |
| CMYK | cmyk(38%, 43%, 0%, 5%) |
| LAB | lab(62.6 28.9 -50.7) |
| LCH | lch(62.6 58.4 299.7) |
| OKLCH | oklch(0.689 0.150 287.5) |
Copy-ready code
/* CSS */
color: #978af2;
background-color: #978af2;
/* Tailwind (arbitrary) */
class="text-[#978af2] bg-[#978af2]"
/* SCSS */
$brand: #978af2;
/* SwiftUI */
Color(red: 0.592, green: 0.541, blue: 0.949)
/* Android */
Color.parseColor("#978af2")Accessibility — WCAG contrast
Aa
#978af2 on white: 2.90:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#978af2 on black: 7.23:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red59.2%
Green54.1%
Blue94.9%
CMYK percentages
Cyan37.6%
Magenta43.0%
Yellow0.0%
Key (black)5.1%
Color previews
#978af2 text on a black background
contrast 7.23:1
Card sample
#978af2 text on a white background
contrast 2.90:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #978af2;
Background color
Panel with #978af2 background
background-color: #978af2;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #978af2;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(151, 138, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 138, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #978af2; background: linear-gradient(135deg, #978af2, #DC8AF2);