#AF43AB#AF43AB
#AF43AB is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.8% C 0.187 H 329.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #AF43AB |
|---|---|
| RGB | rgb(175, 67, 171) |
| HSL | hsl(302, 45%, 47%) |
| HSV | hsv(302, 62%, 69%) |
| CMYK | cmyk(0%, 61.7%, 2.3%, 31.4%) |
| CIE-LAB | lab(47.07, 56.99, -34.74) |
| CIE-LCH | lch(47.07, 66.75, 328.64°) |
| OKLab | oklab(56.78% 0.1603 -0.0956) |
| OKLCH | oklch(56.78% 0.187 329.2) |
| XYZ | xyz(27.0368, 16.0704, 40.1980) |
| Luminance | 0.1607 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.63
Medium Purple
#9E43A2
ΔE00 3.43
Purpley Pink
#C83CB9
ΔE00 4.66
Purply
#983FB2
ΔE00 5.77
Barney
#AC1DB8
ΔE00 6.18
Pinky Purple
#C94CBE
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF43AB #43AF47
analogous
#7D43AF #AF43AB #AF4375
triadic
#AF43AB #ABAF43 #43ABAF
tetradic
#AF43AB #AF7D43 #43AF47 #4375AF
square
#AF43AB #AF7D43 #43AF47 #4375AF
split-complementary
#AF43AB #75AF43 #43AF7D
monochromatic
#562155 #833280 #AF43AB #C669C2 #D796D4
Accessibility & contrast
On white
4.98
#AF43AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#AF43AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF43AB
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF43AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF43AB | 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)
#3966AE
Deuteranopia (green-blind)
#5E75A8
Tritanopia (blue-blind)
#B54F71
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #af43ab; /* rgb */ color: rgb(175, 67, 171); /* oklch */ color: oklch(56.8% 0.187 329.2);
Tailwind
colors: {
custom: {
50: '#ca7ec4',
500: '#af43ab',
950: '#000000',
},
}SCSS
$custom: #af43ab; $custom-light: #ca7ec4; $custom-dark: #000000;
JSON
{
"hex": "#af43ab",
"rgb": {
"r": 175,
"g": 67,
"b": 171
},
"hsl": {
"h": 302.222,
"s": 44.628,
"l": 47.451
},
"oklch": {
"l": 0.56779,
"c": 0.18669,
"h": 329.2
},
"luminance": 0.16069
}Semantic roles & 50–950 ramp
primary
#AF43AB
secondary
#8BC28D
accent
#D45853
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82