#AF41B5#AF41B5
#AF41B5 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.1% C 0.198 H 325.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #AF41B5 |
|---|---|
| RGB | rgb(175, 65, 181) |
| HSL | hsl(297, 47%, 48%) |
| HSV | hsv(297, 64%, 71%) |
| CMYK | cmyk(3.3%, 64.1%, 0%, 29%) |
| CIE-LAB | lab(47.28, 59.58, -40.28) |
| CIE-LCH | lch(47.28, 71.92, 325.94°) |
| OKLab | oklab(57.1% 0.1634 -0.1116) |
| OKLCH | oklch(57.1% 0.198 325.7) |
| XYZ | xyz(27.9094, 16.2325, 45.3702) |
| Luminance | 0.1623 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.86
Medium Purple
#9E43A2
ΔE00 4.04
Purpley Pink
#C83CB9
ΔE00 4.74
Purply
#983FB2
ΔE00 4.83
Barney
#AC1DB8
ΔE00 5.20
Pinky Purple
#C94CBE
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF41B5 #47B541
analogous
#7541B5 #AF41B5 #B54181
triadic
#AF41B5 #B5AF41 #41B5AF
tetradic
#AF41B5 #B57541 #47B541 #4181B5
square
#AF41B5 #B57541 #47B541 #4181B5
split-complementary
#AF41B5 #81B541 #41B575
monochromatic
#58215B #833188 #AF41B5 #C46AC9 #D697DA
Accessibility & contrast
On white
4.95
#AF41B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.25
#AF41B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF41B5
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF41B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF41B5 | 1.00 | 4.95 | 4.25 | 4.95 |
| #FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D67B8
Deuteranopia (green-blind)
#5875B2
Tritanopia (blue-blind)
#B35275
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #af41b5; /* rgb */ color: rgb(175, 65, 181); /* oklch */ color: oklch(57.1% 0.198 325.7);
Tailwind
colors: {
custom: {
50: '#ca7ecb',
500: '#af41b5',
950: '#000000',
},
}SCSS
$custom: #af41b5; $custom-light: #ca7ecb; $custom-dark: #000000;
JSON
{
"hex": "#af41b5",
"rgb": {
"r": 175,
"g": 65,
"b": 181
},
"hsl": {
"h": 296.897,
"s": 47.154,
"l": 48.235
},
"oklch": {
"l": 0.571,
"c": 0.19789,
"h": 325.7
},
"luminance": 0.16231
}Semantic roles & 50–950 ramp
primary
#AF41B5
secondary
#8FC58C
accent
#D75158
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82