#AF41B1#AF41B1
#AF41B1 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.194 H 327.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #AF41B1 |
|---|---|
| RGB | rgb(175, 65, 177) |
| HSL | hsl(299, 46%, 47%) |
| HSV | hsv(299, 63%, 69%) |
| CMYK | cmyk(1.1%, 63.3%, 0%, 30.6%) |
| CIE-LAB | lab(47.07, 58.88, -38.27) |
| CIE-LCH | lch(47.07, 70.22, 326.98°) |
| OKLab | oklab(56.88% 0.1632 -0.1058) |
| OKLCH | oklch(56.88% 0.194 327) |
| XYZ | xyz(27.5048, 16.0707, 43.2397) |
| Luminance | 0.1607 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.27
Medium Purple
#9E43A2
ΔE00 3.65
Purpley Pink
#C83CB9
ΔE00 4.67
Purply
#983FB2
ΔE00 5.05
Barney
#AC1DB8
ΔE00 5.37
Pinky Purple
#C94CBE
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF41B1 #43B141
analogous
#7741B1 #AF41B1 #B1417B
triadic
#AF41B1 #B1AF41 #41B1AF
tetradic
#AF41B1 #B17741 #43B141 #417BB1
square
#AF41B1 #B17741 #43B141 #417BB1
split-complementary
#AF41B1 #7BB141 #41B177
monochromatic
#562057 #833184 #AF41B1 #C668C7 #D795D8
Accessibility & contrast
On white
4.98
#AF41B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#AF41B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF41B1
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF41B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF41B1 | 1.00 | 4.98 | 4.21 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3167B4
Deuteranopia (green-blind)
#5A75AE
Tritanopia (blue-blind)
#B45073
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #af41b1; /* rgb */ color: rgb(175, 65, 177); /* oklch */ color: oklch(56.9% 0.194 327.0);
Tailwind
colors: {
custom: {
50: '#ca7dc9',
500: '#af41b1',
950: '#000000',
},
}SCSS
$custom: #af41b1; $custom-light: #ca7dc9; $custom-dark: #000000;
JSON
{
"hex": "#af41b1",
"rgb": {
"r": 175,
"g": 65,
"b": 177
},
"hsl": {
"h": 298.929,
"s": 46.281,
"l": 47.451
},
"oklch": {
"l": 0.56879,
"c": 0.19449,
"h": 327
},
"luminance": 0.16069
}Semantic roles & 50–950 ramp
primary
#AF41B1
secondary
#8BC38A
accent
#D65254
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82