#AF50D2#AF50D2
#AF50D2 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.5% C 0.204 H 315.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #AF50D2 |
|---|---|
| RGB | rgb(175, 80, 210) |
| HSL | hsl(284, 59%, 57%) |
| HSV | hsv(284, 62%, 82%) |
| CMYK | cmyk(16.7%, 61.9%, 0%, 17.6%) |
| CIE-LAB | lab(51.27, 58.51, -50.69) |
| CIE-LCH | lch(51.27, 77.42, 319.09°) |
| OKLab | oklab(60.51% 0.1462 -0.1421) |
| OKLCH | oklch(60.51% 0.204 315.8) |
| XYZ | xyz(32.1789, 19.5056, 63.0302) |
| Luminance | 0.1950 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 2.72
Lightish Purple
#A552E6
ΔE00 3.99
Amethyst
#9B5FC0
ΔE00 5.00
Lighter Purple
#A55AF4
ΔE00 6.24
Purple Pink
#D725DE
ΔE00 6.64
Pinky Purple
#C94CBE
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF50D2 #73D250
analogous
#6E50D2 #AF50D2 #D250B4
triadic
#AF50D2 #D2AF50 #50D2AF
tetradic
#AF50D2 #D26E50 #73D250 #50B4D2
square
#AF50D2 #D26E50 #73D250 #50B4D2
split-complementary
#AF50D2 #B4D250 #50D26E
monochromatic
#6B2285 #922FB6 #AF50D2 #C581DF #DCB1EB
Accessibility & contrast
On white
4.29
#AF50D2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.90
#AF50D2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF50D2
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF50D2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF50D2 | 1.00 | 4.29 | 4.90 | 4.90 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2474D6
Deuteranopia (green-blind)
#507DCF
Tritanopia (blue-blind)
#AD678A
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #af50d2; /* rgb */ color: rgb(175, 80, 210); /* oklch */ color: oklch(60.5% 0.204 315.8);
Tailwind
colors: {
custom: {
50: '#ca87e0',
500: '#af50d2',
950: '#000000',
},
}SCSS
$custom: #af50d2; $custom-light: #ca87e0; $custom-dark: #000000;
JSON
{
"hex": "#af50d2",
"rgb": {
"r": 175,
"g": 80,
"b": 210
},
"hsl": {
"h": 283.846,
"s": 59.091,
"l": 56.863
},
"oklch": {
"l": 0.60512,
"c": 0.20385,
"h": 315.8
},
"luminance": 0.19504
}Semantic roles & 50–950 ramp
primary
#AF50D2
secondary
#B3D9A4
accent
#E24670
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83