#ba45db
a balanced, vivid violet · warm · closest name: orchid
RGB
186, 69, 219
HSL
287°, 68%, 57%
CMYK
15, 69, 0, 14
Luminance
0.1981
Every format
| HEX | #ba45db |
| RGB | rgb(186, 69, 219) |
| HSL | hsl(287, 68%, 57%) |
| CMYK | cmyk(15%, 69%, 0%, 14%) |
| LAB | lab(51.6 67.5 -55.2) |
| LCH | lch(51.6 87.2 320.7) |
| OKLCH | oklch(0.613 0.231 317.9) |
Copy-ready code
/* CSS */
color: #ba45db;
background-color: #ba45db;
/* Tailwind (arbitrary) */
class="text-[#ba45db] bg-[#ba45db]"
/* SCSS */
$brand: #ba45db;
/* SwiftUI */
Color(red: 0.729, green: 0.271, blue: 0.859)
/* Android */
Color.parseColor("#ba45db")Accessibility — WCAG contrast
Aa
#ba45db on white: 4.23:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba45db on black: 4.96:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green27.1%
Blue85.9%
CMYK percentages
Cyan15.1%
Magenta68.5%
Yellow0.0%
Key (black)14.1%
Color previews
#ba45db text on a black background
contrast 4.96:1
Card sample
#ba45db text on a white background
contrast 4.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba45db;
Background color
Panel with #ba45db background
background-color: #ba45db;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba45db;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 69, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 69, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba45db; background: linear-gradient(135deg, #ba45db, #DB4598);