#AF41B7#AF41B7
#AF41B7 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.2% C 0.200 H 325.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #AF41B7 |
|---|---|
| RGB | rgb(175, 65, 183) |
| HSL | hsl(296, 48%, 49%) |
| HSV | hsv(296, 64%, 72%) |
| CMYK | cmyk(4.4%, 64.5%, 0%, 28.2%) |
| CIE-LAB | lab(47.39, 59.94, -41.28) |
| CIE-LCH | lch(47.39, 72.78, 325.44°) |
| OKLab | oklab(57.21% 0.1635 -0.1145) |
| OKLCH | oklch(57.21% 0.2 325) |
| XYZ | xyz(28.1161, 16.3151, 46.4588) |
| Luminance | 0.1631 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.17
Medium Purple
#9E43A2
ΔE00 4.27
Purply
#983FB2
ΔE00 4.76
Purpley Pink
#C83CB9
ΔE00 4.80
Barney
#AC1DB8
ΔE00 5.15
Pinky Purple
#C94CBE
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF41B7 #49B741
analogous
#7441B7 #AF41B7 #B74184
triadic
#AF41B7 #B7AF41 #41B7AF
tetradic
#AF41B7 #B77441 #49B741 #4184B7
square
#AF41B7 #B77441 #49B741 #4184B7
split-complementary
#AF41B7 #84B741 #41B774
monochromatic
#59215D #84318A #AF41B7 #C46BCA #D698DA
Accessibility & contrast
On white
4.93
#AF41B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.26
#AF41B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF41B7
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF41B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF41B7 | 1.00 | 4.93 | 4.26 | 4.93 |
| #FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B68BA
Deuteranopia (green-blind)
#5775B4
Tritanopia (blue-blind)
#B35376
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #af41b7; /* rgb */ color: rgb(175, 65, 183); /* oklch */ color: oklch(57.2% 0.200 325.0);
Tailwind
colors: {
custom: {
50: '#ca7ecd',
500: '#af41b7',
950: '#000000',
},
}SCSS
$custom: #af41b7; $custom-light: #ca7ecd; $custom-dark: #000000;
JSON
{
"hex": "#af41b7",
"rgb": {
"r": 175,
"g": 65,
"b": 183
},
"hsl": {
"h": 295.932,
"s": 47.581,
"l": 48.627
},
"oklch": {
"l": 0.57212,
"c": 0.19959,
"h": 325
},
"luminance": 0.16313
}Semantic roles & 50–950 ramp
primary
#AF41B7
secondary
#91C68E
accent
#D7515A
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82