#af237c
a dark, vivid magenta / pink · warm · closest name: purple
RGB
175, 35, 124
HSL
322°, 67%, 41%
CMYK
0, 80, 29, 31
Luminance
0.1177
Every format
| HEX | #af237c |
| RGB | rgb(175, 35, 124) |
| HSL | hsl(322, 67%, 41%) |
| CMYK | cmyk(0%, 80%, 29%, 31%) |
| LAB | lab(40.9 61.6 -16.0) |
| LCH | lch(40.9 63.6 345.4) |
| OKLCH | oklch(0.516 0.193 347.3) |
Copy-ready code
/* CSS */
color: #af237c;
background-color: #af237c;
/* Tailwind (arbitrary) */
class="text-[#af237c] bg-[#af237c]"
/* SCSS */
$brand: #af237c;
/* SwiftUI */
Color(red: 0.686, green: 0.137, blue: 0.486)
/* Android */
Color.parseColor("#af237c")Accessibility — WCAG contrast
Aa
#af237c on white: 6.26:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#af237c on black: 3.35:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green13.7%
Blue48.6%
CMYK percentages
Cyan0.0%
Magenta80.0%
Yellow29.1%
Key (black)31.4%
Color previews
#af237c text on a black background
contrast 3.35:1
Card sample
#af237c text on a white background
contrast 6.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af237c;
Background color
Panel with #af237c background
background-color: #af237c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af237c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 35, 124, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 35, 124, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af237c; background: linear-gradient(135deg, #af237c, #AF2723);