#a226ff
a balanced, electric violet · warm · closest name: blue
RGB
162, 38, 255
HSL
274°, 100%, 58%
CMYK
37, 85, 0, 0
Luminance
0.1629
Every format
| HEX | #a226ff |
| RGB | rgb(162, 38, 255) |
| HSL | hsl(274, 100%, 58%) |
| CMYK | cmyk(37%, 85%, 0%, 0%) |
| LAB | lab(47.4 80.6 -82.5) |
| LCH | lch(47.4 115.4 314.3) |
| OKLCH | oklch(0.584 0.283 303.7) |
Copy-ready code
/* CSS */
color: #a226ff;
background-color: #a226ff;
/* Tailwind (arbitrary) */
class="text-[#a226ff] bg-[#a226ff]"
/* SCSS */
$brand: #a226ff;
/* SwiftUI */
Color(red: 0.635, green: 0.149, blue: 1.000)
/* Android */
Color.parseColor("#a226ff")Accessibility — WCAG contrast
Aa
#a226ff on white: 4.93:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#a226ff on black: 4.26:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red63.5%
Green14.9%
Blue100.0%
CMYK percentages
Cyan36.5%
Magenta85.1%
Yellow0.0%
Key (black)0.0%
Color previews
#a226ff text on a black background
contrast 4.26:1
Card sample
#a226ff text on a white background
contrast 4.93:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a226ff;
Background color
Panel with #a226ff background
background-color: #a226ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a226ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(162, 38, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 38, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a226ff; background: linear-gradient(135deg, #a226ff, #FF26CB);