#6c18ce
a balanced, electric violet · warm · closest name: indigo
RGB
108, 24, 206
HSL
268°, 79%, 45%
CMYK
48, 88, 0, 19
Luminance
0.0830
Every format
| HEX | #6c18ce |
| RGB | rgb(108, 24, 206) |
| HSL | hsl(268, 79%, 45%) |
| CMYK | cmyk(48%, 88%, 0%, 19%) |
| LAB | lab(34.6 67.2 -75.9) |
| LCH | lch(34.6 101.3 311.5) |
| OKLCH | oklch(0.468 0.241 295.4) |
Copy-ready code
/* CSS */
color: #6c18ce;
background-color: #6c18ce;
/* Tailwind (arbitrary) */
class="text-[#6c18ce] bg-[#6c18ce]"
/* SCSS */
$brand: #6c18ce;
/* SwiftUI */
Color(red: 0.424, green: 0.094, blue: 0.808)
/* Android */
Color.parseColor("#6c18ce")Accessibility — WCAG contrast
Aa
#6c18ce on white: 7.90:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#6c18ce on black: 2.66:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red42.4%
Green9.4%
Blue80.8%
CMYK percentages
Cyan47.6%
Magenta88.3%
Yellow0.0%
Key (black)19.2%
Color previews
#6c18ce text on a black background
contrast 2.66:1
Card sample
#6c18ce text on a white background
contrast 7.90:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #6c18ce;
Background color
Panel with #6c18ce background
background-color: #6c18ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #6c18ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(108, 24, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 24, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c18ce; background: linear-gradient(135deg, #6c18ce, #CE18B7);