#812cff
a balanced, electric violet · warm · closest name: blue
RGB
129, 44, 255
HSL
264°, 100%, 59%
CMYK
49, 83, 0, 0
Luminance
0.1369
Every format
| HEX | #812cff |
| RGB | rgb(129, 44, 255) |
| HSL | hsl(264, 100%, 59%) |
| CMYK | cmyk(49%, 83%, 0%, 0%) |
| LAB | lab(43.8 75.0 -88.5) |
| LCH | lch(43.8 116.0 310.3) |
| OKLCH | oklch(0.550 0.276 292.8) |
Copy-ready code
/* CSS */
color: #812cff;
background-color: #812cff;
/* Tailwind (arbitrary) */
class="text-[#812cff] bg-[#812cff]"
/* SCSS */
$brand: #812cff;
/* SwiftUI */
Color(red: 0.506, green: 0.173, blue: 1.000)
/* Android */
Color.parseColor("#812cff")Accessibility — WCAG contrast
Aa
#812cff on white: 5.62:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#812cff on black: 3.74:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.6%
Green17.3%
Blue100.0%
CMYK percentages
Cyan49.4%
Magenta82.7%
Yellow0.0%
Key (black)0.0%
Color previews
#812cff text on a black background
contrast 3.74:1
Card sample
#812cff text on a white background
contrast 5.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #812cff;
Background color
Panel with #812cff background
background-color: #812cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #812cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(129, 44, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(129, 44, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #812cff; background: linear-gradient(135deg, #812cff, #FF2CF0);