#AF4CD2#AF4CD2
#AF4CD2 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.0% C 0.209 H 316.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4CD2 |
|---|---|
| RGB | rgb(175, 76, 210) |
| HSL | hsl(284, 60%, 56%) |
| HSV | hsv(284, 64%, 82%) |
| CMYK | cmyk(16.7%, 63.8%, 0%, 17.6%) |
| CIE-LAB | lab(50.61, 60.33, -51.75) |
| CIE-LCH | lch(50.61, 79.48, 319.38°) |
| OKLab | oklab(60.03% 0.1509 -0.1451) |
| OKLCH | oklch(60.03% 0.209 316.1) |
| XYZ | xyz(31.8947, 18.9372, 62.9354) |
| Luminance | 0.1894 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.33
Lightish Purple
#A552E6
ΔE00 4.07
Amethyst
#9B5FC0
ΔE00 5.43
Purple Pink
#D725DE
ΔE00 6.46
Lighter Purple
#A55AF4
ΔE00 6.54
Hot Purple
#CB00F5
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4CD2 #6FD24C
analogous
#6C4CD2 #AF4CD2 #D24CB2
triadic
#AF4CD2 #D2AF4C #4CD2AF
tetradic
#AF4CD2 #D26C4C #6FD24C #4CB2D2
square
#AF4CD2 #D26C4C #6FD24C #4CB2D2
split-complementary
#AF4CD2 #B2D24C #4CD26C
monochromatic
#692183 #912DB4 #AF4CD2 #C57DDE #DBAEEB
Accessibility & contrast
On white
4.39
#AF4CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#AF4CD2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF4CD2
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4CD2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF4CD2 | 1.00 | 4.39 | 4.79 | 4.79 |
| #FFFFFF | 4.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1873D6
Deuteranopia (green-blind)
#4C7BCF
Tritanopia (blue-blind)
#AD6588
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #af4cd2; /* rgb */ color: rgb(175, 76, 210); /* oklch */ color: oklch(60.0% 0.209 316.1);
Tailwind
colors: {
custom: {
50: '#ca84e0',
500: '#af4cd2',
950: '#000000',
},
}SCSS
$custom: #af4cd2; $custom-light: #ca84e0; $custom-dark: #000000;
JSON
{
"hex": "#af4cd2",
"rgb": {
"r": 175,
"g": 76,
"b": 210
},
"hsl": {
"h": 284.328,
"s": 59.821,
"l": 56.078
},
"oklch": {
"l": 0.60034,
"c": 0.20935,
"h": 316.1
},
"luminance": 0.18936
}Semantic roles & 50–950 ramp
primary
#AF4CD2
secondary
#B0D9A1
accent
#E3456E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140B15
muted
#827C83