#AF37D2#AF37D2
#AF37D2 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.235 H 317.3°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #AF37D2 |
|---|---|
| RGB | rgb(175, 55, 210) |
| HSL | hsl(286, 63%, 52%) |
| HSV | hsv(286, 74%, 82%) |
| CMYK | cmyk(16.7%, 73.8%, 0%, 17.6%) |
| CIE-LAB | lab(47.62, 68.73, -56.54) |
| CIE-LCH | lch(47.62, 89.00, 320.56°) |
| OKLab | oklab(57.9% 0.1726 -0.1591) |
| OKLCH | oklch(57.9% 0.235 317.3) |
| XYZ | xyz(30.6765, 16.5008, 62.5294) |
| Luminance | 0.1650 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Vibrant Purple
#AD03DE
ΔE00 4.38
Darkorchid
#9932CC
ΔE00 4.61
Barney
#AC1DB8
ΔE00 5.44
Hot Purple
#CB00F5
ΔE00 5.63
Bright Purple
#BE03FD
ΔE00 5.65
Purply
#983FB2
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF37D2 #5AD237
analogous
#6237D2 #AF37D2 #D237A7
triadic
#AF37D2 #D2AF37 #37D2AF
tetradic
#AF37D2 #D26237 #5AD237 #37A7D2
square
#AF37D2 #D26237 #5AD237 #37A7D2
split-complementary
#AF37D2 #A7D237 #37D262
monochromatic
#601A74 #8925A6 #AF37D2 #C369DD #D79BE8
Accessibility & contrast
On white
4.88
#AF37D2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#AF37D2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF37D2
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF37D2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF37D2 | 1.00 | 4.88 | 4.30 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#3B75CF
Tritanopia (blue-blind)
#AD5882
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #af37d2; /* rgb */ color: rgb(175, 55, 210); /* oklch */ color: oklch(57.9% 0.235 317.3);
Tailwind
colors: {
custom: {
50: '#cb7ae1',
500: '#af37d2',
950: '#000000',
},
}SCSS
$custom: #af37d2; $custom-light: #cb7ae1; $custom-dark: #000000;
JSON
{
"hex": "#af37d2",
"rgb": {
"r": 175,
"g": 55,
"b": 210
},
"hsl": {
"h": 286.452,
"s": 63.265,
"l": 51.961
},
"oklch": {
"l": 0.57895,
"c": 0.23468,
"h": 317.3
},
"luminance": 0.16499
}Semantic roles & 50–950 ramp
primary
#AF37D2
secondary
#A0D490
accent
#E64167
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83