#af45ce
a balanced, vivid violet · warm · closest name: orchid
RGB
175, 69, 206
HSL
286°, 58%, 54%
CMYK
15, 67, 0, 19
Luminance
0.1783
Every format
| HEX | #af45ce |
| RGB | rgb(175, 69, 206) |
| HSL | hsl(286, 58%, 54%) |
| CMYK | cmyk(15%, 67%, 0%, 19%) |
| LAB | lab(49.3 62.6 -51.6) |
| LCH | lch(49.3 81.1 320.5) |
| OKLCH | oklch(0.590 0.215 317.7) |
Copy-ready code
/* CSS */
color: #af45ce;
background-color: #af45ce;
/* Tailwind (arbitrary) */
class="text-[#af45ce] bg-[#af45ce]"
/* SCSS */
$brand: #af45ce;
/* SwiftUI */
Color(red: 0.686, green: 0.271, blue: 0.808)
/* Android */
Color.parseColor("#af45ce")Accessibility — WCAG contrast
Aa
#af45ce on white: 4.60:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af45ce on black: 4.57:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green27.1%
Blue80.8%
CMYK percentages
Cyan15.0%
Magenta66.5%
Yellow0.0%
Key (black)19.2%
Color previews
#af45ce text on a black background
contrast 4.57:1
Card sample
#af45ce text on a white background
contrast 4.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af45ce;
Background color
Panel with #af45ce background
background-color: #af45ce;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af45ce;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 69, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 69, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af45ce; background: linear-gradient(135deg, #af45ce, #CE4592);