#d307eb
a balanced, electric magenta / pink · warm · closest name: magenta
RGB
211, 7, 235
HSL
294°, 94%, 48%
CMYK
10, 97, 0, 8
Luminance
0.2000
Every format
| HEX | #d307eb |
| RGB | rgb(211, 7, 235) |
| HSL | hsl(294, 94%, 48%) |
| CMYK | cmyk(10%, 97%, 0%, 8%) |
| LAB | lab(51.8 88.2 -63.7) |
| LCH | lch(51.8 108.8 324.2) |
| OKLCH | oklch(0.625 0.294 322.5) |
Copy-ready code
/* CSS */
color: #d307eb;
background-color: #d307eb;
/* Tailwind (arbitrary) */
class="text-[#d307eb] bg-[#d307eb]"
/* SCSS */
$brand: #d307eb;
/* SwiftUI */
Color(red: 0.827, green: 0.027, blue: 0.922)
/* Android */
Color.parseColor("#d307eb")Accessibility — WCAG contrast
Aa
#d307eb on white: 4.20:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#d307eb on black: 5.00:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red82.7%
Green2.7%
Blue92.2%
CMYK percentages
Cyan10.2%
Magenta97.0%
Yellow0.0%
Key (black)7.8%
Color previews
#d307eb text on a black background
contrast 5.00:1
Card sample
#d307eb text on a white background
contrast 4.20:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #d307eb;
Background color
Panel with #d307eb background
background-color: #d307eb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #d307eb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(211, 7, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(211, 7, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d307eb; background: linear-gradient(135deg, #d307eb, #EB076B);