#a145db
a balanced, vivid violet · warm · closest name: slateblue
RGB
161, 69, 219
HSL
277°, 68%, 57%
CMYK
27, 69, 0, 14
Luminance
0.1695
Every format
| HEX | #a145db |
| RGB | rgb(161, 69, 219) |
| HSL | hsl(277, 68%, 57%) |
| CMYK | cmyk(27%, 69%, 0%, 14%) |
| LAB | lab(48.2 62.3 -60.9) |
| LCH | lch(48.2 87.1 315.6) |
| OKLCH | oklch(0.581 0.222 309.2) |
Copy-ready code
/* CSS */
color: #a145db;
background-color: #a145db;
/* Tailwind (arbitrary) */
class="text-[#a145db] bg-[#a145db]"
/* SCSS */
$brand: #a145db;
/* SwiftUI */
Color(red: 0.631, green: 0.271, blue: 0.859)
/* Android */
Color.parseColor("#a145db")Accessibility — WCAG contrast
Aa
#a145db on white: 4.78:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#a145db on black: 4.39:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red63.1%
Green27.1%
Blue85.9%
CMYK percentages
Cyan26.5%
Magenta68.5%
Yellow0.0%
Key (black)14.1%
Color previews
#a145db text on a black background
contrast 4.39:1
Card sample
#a145db text on a white background
contrast 4.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a145db;
Background color
Panel with #a145db background
background-color: #a145db;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a145db;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(161, 69, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(161, 69, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a145db; background: linear-gradient(135deg, #a145db, #DB45B1);