#8974df
a light, vivid blue · warm · closest name: slateblue
RGB
137, 116, 223
HSL
252°, 63%, 67%
CMYK
39, 48, 0, 13
Luminance
0.2314
Every format
| HEX | #8974df |
| RGB | rgb(137, 116, 223) |
| HSL | hsl(252, 63%, 67%) |
| CMYK | cmyk(39%, 48%, 0%, 13%) |
| LAB | lab(55.2 33.0 -52.0) |
| LCH | lch(55.2 61.6 302.4) |
| OKLCH | oklch(0.627 0.157 290.2) |
Copy-ready code
/* CSS */
color: #8974df;
background-color: #8974df;
/* Tailwind (arbitrary) */
class="text-[#8974df] bg-[#8974df]"
/* SCSS */
$brand: #8974df;
/* SwiftUI */
Color(red: 0.537, green: 0.455, blue: 0.875)
/* Android */
Color.parseColor("#8974df")Accessibility — WCAG contrast
Aa
#8974df on white: 3.73:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8974df on black: 5.63:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red53.7%
Green45.5%
Blue87.5%
CMYK percentages
Cyan38.6%
Magenta48.0%
Yellow0.0%
Key (black)12.5%
Color previews
#8974df text on a black background
contrast 5.63:1
Card sample
#8974df text on a white background
contrast 3.73:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8974df;
Background color
Panel with #8974df background
background-color: #8974df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8974df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(137, 116, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(137, 116, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8974df; background: linear-gradient(135deg, #8974df, #D074DF);