#AF41B2#AF41B2
#AF41B2 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.195 H 326.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #AF41B2 |
|---|---|
| RGB | rgb(175, 65, 178) |
| HSL | hsl(298, 47%, 48%) |
| HSV | hsv(298, 63%, 70%) |
| CMYK | cmyk(1.7%, 63.5%, 0%, 30.2%) |
| CIE-LAB | lab(47.12, 59.05, -38.77) |
| CIE-LCH | lch(47.12, 70.65, 326.71°) |
| OKLab | oklab(56.93% 0.1632 -0.1073) |
| OKLCH | oklch(56.93% 0.195 326.7) |
| XYZ | xyz(27.6049, 16.1107, 43.7665) |
| Luminance | 0.1611 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.41
Medium Purple
#9E43A2
ΔE00 3.74
Purpley Pink
#C83CB9
ΔE00 4.68
Purply
#983FB2
ΔE00 4.99
Barney
#AC1DB8
ΔE00 5.32
Pinky Purple
#C94CBE
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF41B2 #44B241
analogous
#7641B2 #AF41B2 #B2417C
triadic
#AF41B2 #B2AF41 #41B2AF
tetradic
#AF41B2 #B27641 #44B241 #417CB2
square
#AF41B2 #B27641 #44B241 #417CB2
split-complementary
#AF41B2 #7CB241 #41B276
monochromatic
#572058 #833185 #AF41B2 #C568C8 #D795D8
Accessibility & contrast
On white
4.97
#AF41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.22
#AF41B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF41B2
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF41B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF41B2 | 1.00 | 4.97 | 4.22 | 4.97 |
| #FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3067B5
Deuteranopia (green-blind)
#5A75AF
Tritanopia (blue-blind)
#B45174
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #af41b2; /* rgb */ color: rgb(175, 65, 178); /* oklch */ color: oklch(56.9% 0.195 326.7);
Tailwind
colors: {
custom: {
50: '#ca7dc9',
500: '#af41b2',
950: '#000000',
},
}SCSS
$custom: #af41b2; $custom-light: #ca7dc9; $custom-dark: #000000;
JSON
{
"hex": "#af41b2",
"rgb": {
"r": 175,
"g": 65,
"b": 178
},
"hsl": {
"h": 298.407,
"s": 46.502,
"l": 47.647
},
"oklch": {
"l": 0.56934,
"c": 0.19534,
"h": 326.7
},
"luminance": 0.16109
}Semantic roles & 50–950 ramp
primary
#AF41B2
secondary
#8CC48B
accent
#D65255
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82