#af26ff
a balanced, electric violet · warm · closest name: magenta
RGB
175, 38, 255
HSL
278°, 100%, 58%
CMYK
31, 85, 0, 0
Luminance
0.1772
Every format
| HEX | #af26ff |
| RGB | rgb(175, 38, 255) |
| HSL | hsl(278, 100%, 58%) |
| CMYK | cmyk(31%, 85%, 0%, 0%) |
| LAB | lab(49.2 82.3 -79.5) |
| LCH | lch(49.2 114.4 316.0) |
| OKLCH | oklch(0.600 0.286 307.7) |
Copy-ready code
/* CSS */
color: #af26ff;
background-color: #af26ff;
/* Tailwind (arbitrary) */
class="text-[#af26ff] bg-[#af26ff]"
/* SCSS */
$brand: #af26ff;
/* SwiftUI */
Color(red: 0.686, green: 0.149, blue: 1.000)
/* Android */
Color.parseColor("#af26ff")Accessibility — WCAG contrast
Aa
#af26ff on white: 4.62:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af26ff on black: 4.54:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green14.9%
Blue100.0%
CMYK percentages
Cyan31.4%
Magenta85.1%
Yellow0.0%
Key (black)0.0%
Color previews
#af26ff text on a black background
contrast 4.54:1
Card sample
#af26ff text on a white background
contrast 4.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af26ff;
Background color
Panel with #af26ff background
background-color: #af26ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af26ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 38, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 38, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af26ff; background: linear-gradient(135deg, #af26ff, #FF26BE);