#af7f98
a balanced, soft magenta / pink · warm · closest name: gray
RGB
175, 127, 152
HSL
329°, 23%, 59%
CMYK
0, 27, 13, 31
Luminance
0.2656
Every format
| HEX | #af7f98 |
| RGB | rgb(175, 127, 152) |
| HSL | hsl(329, 23%, 59%) |
| CMYK | cmyk(0%, 27%, 13%, 31%) |
| LAB | lab(58.6 22.5 -6.0) |
| LCH | lch(58.6 23.3 345.0) |
| OKLCH | oklch(0.651 0.068 346.6) |
Copy-ready code
/* CSS */
color: #af7f98;
background-color: #af7f98;
/* Tailwind (arbitrary) */
class="text-[#af7f98] bg-[#af7f98]"
/* SCSS */
$brand: #af7f98;
/* SwiftUI */
Color(red: 0.686, green: 0.498, blue: 0.596)
/* Android */
Color.parseColor("#af7f98")Accessibility — WCAG contrast
Aa
#af7f98 on white: 3.33:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af7f98 on black: 6.31:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green49.8%
Blue59.6%
CMYK percentages
Cyan0.0%
Magenta27.4%
Yellow13.1%
Key (black)31.4%
Color previews
#af7f98 text on a black background
contrast 6.31:1
Card sample
#af7f98 text on a white background
contrast 3.33:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af7f98;
Background color
Panel with #af7f98 background
background-color: #af7f98;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af7f98;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 127, 152, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 127, 152, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af7f98; background: linear-gradient(135deg, #af7f98, #AF867F);