#AB5FA2#AB5FA2
#AB5FA2 is a mid, vivid purple. Relative luminance 0.195; OKLCH L 59.6% C 0.131 H 331.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #AB5FA2 |
|---|---|
| RGB | rgb(171, 95, 162) |
| HSL | hsl(307, 31%, 52%) |
| HSV | hsv(307, 44%, 67%) |
| CMYK | cmyk(0%, 44.4%, 5.3%, 32.9%) |
| CIE-LAB | lab(51.21, 40.62, -23.03) |
| CIE-LCH | lch(51.21, 46.70, 330.45°) |
| OKLab | oklab(59.59% 0.1154 -0.0625) |
| OKLCH | oklch(59.59% 0.131 331.6) |
| XYZ | xyz(27.4081, 19.4525, 36.4865) |
| Luminance | 0.1945 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Dark Lilac
#9C6DA5
ΔE00 5.31
Purpleish
#98568D
ΔE00 5.69
Soft Purple
#A66FB5
ΔE00 5.88
Purplish
#94568C
ΔE00 6.31
Purplish Pink
#CE5DAE
ΔE00 6.75
Light Plum
#9D5783
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB5FA2 #5FAB68
analogous
#8E5FAB #AB5FA2 #AB5F7C
triadic
#AB5FA2 #A2AB5F #5FA2AB
tetradic
#AB5FA2 #AB8E5F #5FAB68 #5F7CAB
square
#AB5FA2 #AB8E5F #5FAB68 #5F7CAB
split-complementary
#AB5FA2 #7CAB5F #5FAB8E
monochromatic
#5E3159 #86477F #AB5FA2 #C087B9 #D5AFD1
Accessibility & contrast
On white
4.29
#AB5FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.89
#AB5FA2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB5FA2
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB5FA2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB5FA2 | 1.00 | 4.29 | 4.89 | 4.89 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5D73A4
Deuteranopia (green-blind)
#717EA0
Tritanopia (blue-blind)
#B16479
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #ab5fa2; /* rgb */ color: rgb(171, 95, 162); /* oklch */ color: oklch(59.6% 0.131 331.6);
Tailwind
colors: {
custom: {
50: '#c58fbd',
500: '#ab5fa2',
950: '#000000',
},
}SCSS
$custom: #ab5fa2; $custom-light: #c58fbd; $custom-dark: #000000;
JSON
{
"hex": "#ab5fa2",
"rgb": {
"r": 171,
"g": 95,
"b": 162
},
"hsl": {
"h": 307.105,
"s": 31.148,
"l": 52.157
},
"oklch": {
"l": 0.5959,
"c": 0.13123,
"h": 331.6
},
"luminance": 0.19451
}Semantic roles & 50–950 ramp
primary
#AB5FA2
secondary
#A2C3A6
accent
#C76D60
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81