#8978df
a light, vivid blue · warm · closest name: slateblue
RGB
137, 120, 223
HSL
250°, 62%, 67%
CMYK
39, 46, 0, 13
Luminance
0.2408
Every format
| HEX | #8978df |
| RGB | rgb(137, 120, 223) |
| HSL | hsl(250, 62%, 67%) |
| CMYK | cmyk(39%, 46%, 0%, 13%) |
| LAB | lab(56.2 30.7 -50.5) |
| LCH | lch(56.2 59.1 301.3) |
| OKLCH | oklch(0.634 0.151 288.9) |
Copy-ready code
/* CSS */
color: #8978df;
background-color: #8978df;
/* Tailwind (arbitrary) */
class="text-[#8978df] bg-[#8978df]"
/* SCSS */
$brand: #8978df;
/* SwiftUI */
Color(red: 0.537, green: 0.471, blue: 0.875)
/* Android */
Color.parseColor("#8978df")Accessibility — WCAG contrast
Aa
#8978df on white: 3.61:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8978df on black: 5.82:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red53.7%
Green47.1%
Blue87.5%
CMYK percentages
Cyan38.6%
Magenta46.2%
Yellow0.0%
Key (black)12.5%
Color previews
#8978df text on a black background
contrast 5.82:1
Card sample
#8978df text on a white background
contrast 3.61:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8978df;
Background color
Panel with #8978df background
background-color: #8978df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8978df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(137, 120, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(137, 120, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8978df; background: linear-gradient(135deg, #8978df, #CE78DF);