#8c98cf
a light, soft blue · warm · closest name: steelblue
RGB
140, 152, 207
HSL
229°, 41%, 68%
CMYK
32, 27, 0, 19
Luminance
0.3254
Every format
| HEX | #8c98cf |
| RGB | rgb(140, 152, 207) |
| HSL | hsl(229, 41%, 68%) |
| CMYK | cmyk(32%, 27%, 0%, 19%) |
| LAB | lab(63.8 8.6 -29.6) |
| LCH | lch(63.8 30.8 286.2) |
| OKLCH | oklch(0.691 0.082 274.6) |
Copy-ready code
/* CSS */
color: #8c98cf;
background-color: #8c98cf;
/* Tailwind (arbitrary) */
class="text-[#8c98cf] bg-[#8c98cf]"
/* SCSS */
$brand: #8c98cf;
/* SwiftUI */
Color(red: 0.549, green: 0.596, blue: 0.812)
/* Android */
Color.parseColor("#8c98cf")Accessibility — WCAG contrast
Aa
#8c98cf on white: 2.80:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#8c98cf on black: 7.51:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green59.6%
Blue81.2%
CMYK percentages
Cyan32.4%
Magenta26.6%
Yellow0.0%
Key (black)18.8%
Color previews
#8c98cf text on a black background
contrast 7.51:1
Card sample
#8c98cf text on a white background
contrast 2.80:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c98cf;
Background color
Panel with #8c98cf background
background-color: #8c98cf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c98cf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 152, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 152, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c98cf; background: linear-gradient(135deg, #8c98cf, #AD8CCF);