#AF3EA1#AF3EA1
#AF3EA1 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.7% C 0.186 H 333.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #AF3EA1 |
|---|---|
| RGB | rgb(175, 62, 161) |
| HSL | hsl(307, 48%, 46%) |
| HSV | hsv(307, 65%, 69%) |
| CMYK | cmyk(0%, 64.6%, 8%, 31.4%) |
| CIE-LAB | lab(45.82, 57.43, -30.78) |
| CIE-LCH | lch(45.82, 65.16, 331.81°) |
| OKLab | oklab(55.71% 0.1654 -0.0842) |
| OKLCH | oklch(55.71% 0.186 333) |
| XYZ | xyz(25.8349, 15.1344, 35.2718) |
| Luminance | 0.1513 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.10
Medium Purple
#9E43A2
ΔE00 3.48
Purpley Pink
#C83CB9
ΔE00 5.66
Barney
#AC1DB8
ΔE00 6.55
Purply
#983FB2
ΔE00 6.65
Warm Purple
#952E8F
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF3EA1 #3EAF4C
analogous
#853EAF #AF3EA1 #AF3E69
triadic
#AF3EA1 #A1AF3E #3EA1AF
tetradic
#AF3EA1 #AF853E #3EAF4C #3E69AF
square
#AF3EA1 #AF853E #3EAF4C #3E69AF
split-complementary
#AF3EA1 #69AF3E #3EAF85
monochromatic
#551E4E #822E77 #AF3EA1 #C863BB #D890CF
Accessibility & contrast
On white
5.22
#AF3EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#AF3EA1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF3EA1
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF3EA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF3EA1 | 1.00 | 5.22 | 4.03 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A62A4
Deuteranopia (green-blind)
#60729E
Tritanopia (blue-blind)
#B7476A
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #af3ea1; /* rgb */ color: rgb(175, 62, 161); /* oklch */ color: oklch(55.7% 0.186 333.0);
Tailwind
colors: {
custom: {
50: '#ca7bbd',
500: '#af3ea1',
950: '#000000',
},
}SCSS
$custom: #af3ea1; $custom-light: #ca7bbd; $custom-dark: #000000;
JSON
{
"hex": "#af3ea1",
"rgb": {
"r": 175,
"g": 62,
"b": 161
},
"hsl": {
"h": 307.434,
"s": 47.679,
"l": 46.471
},
"oklch": {
"l": 0.55711,
"c": 0.18558,
"h": 333
},
"luminance": 0.15132
}Semantic roles & 50–950 ramp
primary
#AF3EA1
secondary
#86C38E
accent
#D76151
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81