#AF51D2#AF51D2
#AF51D2 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 60.6% C 0.202 H 315.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #AF51D2 |
|---|---|
| RGB | rgb(175, 81, 210) |
| HSL | hsl(284, 59%, 57%) |
| HSV | hsv(284, 61%, 82%) |
| CMYK | cmyk(16.7%, 61.4%, 0%, 17.6%) |
| CIE-LAB | lab(51.44, 58.05, -50.42) |
| CIE-LCH | lch(51.44, 76.89, 319.02°) |
| OKLab | oklab(60.63% 0.145 -0.1413) |
| OKLCH | oklch(60.63% 0.202 315.7) |
| XYZ | xyz(32.2527, 19.6531, 63.0547) |
| Luminance | 0.1965 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 2.58
Lightish Purple
#A552E6
ΔE00 4.00
Amethyst
#9B5FC0
ΔE00 4.90
Lighter Purple
#A55AF4
ΔE00 6.18
Purple Pink
#D725DE
ΔE00 6.71
Pinky Purple
#C94CBE
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF51D2 #74D251
analogous
#6F51D2 #AF51D2 #D251B5
triadic
#AF51D2 #D2AF51 #51D2AF
tetradic
#AF51D2 #D26F51 #74D251 #51B5D2
square
#AF51D2 #D26F51 #74D251 #51B5D2
split-complementary
#AF51D2 #B5D251 #51D26F
monochromatic
#6B2386 #922FB7 #AF51D2 #C582DF #DCB2EB
Accessibility & contrast
On white
4.26
#AF51D2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#AF51D2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF51D2
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF51D2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF51D2 | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2775D6
Deuteranopia (green-blind)
#517DCF
Tritanopia (blue-blind)
#AD688A
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #af51d2; /* rgb */ color: rgb(175, 81, 210); /* oklch */ color: oklch(60.6% 0.202 315.7);
Tailwind
colors: {
custom: {
50: '#ca87e0',
500: '#af51d2',
950: '#000000',
},
}SCSS
$custom: #af51d2; $custom-light: #ca87e0; $custom-dark: #000000;
JSON
{
"hex": "#af51d2",
"rgb": {
"r": 175,
"g": 81,
"b": 210
},
"hsl": {
"h": 283.721,
"s": 58.904,
"l": 57.059
},
"oklch": {
"l": 0.60634,
"c": 0.20245,
"h": 315.7
},
"luminance": 0.19652
}Semantic roles & 50–950 ramp
primary
#AF51D2
secondary
#B3DAA5
accent
#E24670
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83