#6938bc
a balanced, vivid violet · warm · closest name: slateblue
RGB
105, 56, 188
HSL
262°, 54%, 48%
CMYK
44, 70, 0, 26
Luminance
0.0946
Every format
| HEX | #6938bc |
| RGB | rgb(105, 56, 188) |
| HSL | hsl(262, 54%, 48%) |
| CMYK | cmyk(44%, 70%, 0%, 26%) |
| LAB | lab(36.9 50.0 -61.6) |
| LCH | lch(36.9 79.4 309.1) |
| OKLCH | oklch(0.478 0.195 294.9) |
Copy-ready code
/* CSS */
color: #6938bc;
background-color: #6938bc;
/* Tailwind (arbitrary) */
class="text-[#6938bc] bg-[#6938bc]"
/* SCSS */
$brand: #6938bc;
/* SwiftUI */
Color(red: 0.412, green: 0.220, blue: 0.737)
/* Android */
Color.parseColor("#6938bc")Accessibility — WCAG contrast
Aa
#6938bc on white: 7.26:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#6938bc on black: 2.89:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red41.2%
Green22.0%
Blue73.7%
CMYK percentages
Cyan44.1%
Magenta70.2%
Yellow0.0%
Key (black)26.3%
Color previews
#6938bc text on a black background
contrast 2.89:1
Card sample
#6938bc text on a white background
contrast 7.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #6938bc;
Background color
Panel with #6938bc background
background-color: #6938bc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #6938bc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(105, 56, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(105, 56, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6938bc; background: linear-gradient(135deg, #6938bc, #BC38B7);