#ab4fcc
a balanced, vivid violet · warm · closest name: orchid
RGB
171, 79, 204
HSL
284°, 55%, 56%
CMYK
16, 61, 0, 20
Luminance
0.1861
Every format
| HEX | #ab4fcc |
| RGB | rgb(171, 79, 204) |
| HSL | hsl(284, 55%, 56%) |
| CMYK | cmyk(16%, 61%, 0%, 20%) |
| LAB | lab(50.2 56.8 -49.0) |
| LCH | lch(50.2 75.0 319.2) |
| OKLCH | oklch(0.595 0.198 316.1) |
Copy-ready code
/* CSS */
color: #ab4fcc;
background-color: #ab4fcc;
/* Tailwind (arbitrary) */
class="text-[#ab4fcc] bg-[#ab4fcc]"
/* SCSS */
$brand: #ab4fcc;
/* SwiftUI */
Color(red: 0.671, green: 0.310, blue: 0.800)
/* Android */
Color.parseColor("#ab4fcc")Accessibility — WCAG contrast
Aa
#ab4fcc on white: 4.45:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ab4fcc on black: 4.72:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green31.0%
Blue80.0%
CMYK percentages
Cyan16.2%
Magenta61.3%
Yellow0.0%
Key (black)20.0%
Color previews
#ab4fcc text on a black background
contrast 4.72:1
Card sample
#ab4fcc text on a white background
contrast 4.45:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab4fcc;
Background color
Panel with #ab4fcc background
background-color: #ab4fcc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab4fcc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 79, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 79, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab4fcc; background: linear-gradient(135deg, #ab4fcc, #CC4F9A);