#8a7bac
a balanced, soft violet · warm · closest name: steelblue
RGB
138, 123, 172
HSL
258°, 23%, 58%
CMYK
20, 29, 0, 33
Luminance
0.2255
Every format
| HEX | #8a7bac |
| RGB | rgb(138, 123, 172) |
| HSL | hsl(258, 23%, 58%) |
| CMYK | cmyk(20%, 29%, 0%, 33%) |
| LAB | lab(54.6 16.1 -23.9) |
| LCH | lch(54.6 28.8 303.9) |
| OKLCH | oklch(0.615 0.075 298.2) |
Copy-ready code
/* CSS */
color: #8a7bac;
background-color: #8a7bac;
/* Tailwind (arbitrary) */
class="text-[#8a7bac] bg-[#8a7bac]"
/* SCSS */
$brand: #8a7bac;
/* SwiftUI */
Color(red: 0.541, green: 0.482, blue: 0.675)
/* Android */
Color.parseColor("#8a7bac")Accessibility — WCAG contrast
Aa
#8a7bac on white: 3.81:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8a7bac on black: 5.51:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.1%
Green48.2%
Blue67.5%
CMYK percentages
Cyan19.8%
Magenta28.5%
Yellow0.0%
Key (black)32.5%
Color previews
#8a7bac text on a black background
contrast 5.51:1
Card sample
#8a7bac text on a white background
contrast 3.81:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8a7bac;
Background color
Panel with #8a7bac background
background-color: #8a7bac;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8a7bac;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(138, 123, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 123, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8a7bac; background: linear-gradient(135deg, #8a7bac, #AB7BAC);