#9788df
a light, vivid blue · warm · closest name: slateblue
RGB
151, 136, 223
HSL
250°, 58%, 70%
CMYK
32, 39, 0, 13
Luminance
0.2952
Every format
| HEX | #9788df |
| RGB | rgb(151, 136, 223) |
| HSL | hsl(250, 58%, 70%) |
| CMYK | cmyk(32%, 39%, 0%, 13%) |
| LAB | lab(61.2 25.1 -42.4) |
| LCH | lch(61.2 49.3 300.6) |
| OKLCH | oklch(0.676 0.127 290.5) |
Copy-ready code
/* CSS */
color: #9788df;
background-color: #9788df;
/* Tailwind (arbitrary) */
class="text-[#9788df] bg-[#9788df]"
/* SCSS */
$brand: #9788df;
/* SwiftUI */
Color(red: 0.592, green: 0.533, blue: 0.875)
/* Android */
Color.parseColor("#9788df")Accessibility — WCAG contrast
Aa
#9788df on white: 3.04:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#9788df on black: 6.90:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red59.2%
Green53.3%
Blue87.5%
CMYK percentages
Cyan32.3%
Magenta39.0%
Yellow0.0%
Key (black)12.5%
Color previews
#9788df text on a black background
contrast 6.90:1
Card sample
#9788df text on a white background
contrast 3.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9788df;
Background color
Panel with #9788df background
background-color: #9788df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9788df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(151, 136, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(151, 136, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9788df; background: linear-gradient(135deg, #9788df, #D188DF);