#AB5FC2#AB5FC2
#AB5FC2 is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.1% C 0.163 H 317.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #AB5FC2 |
|---|---|
| RGB | rgb(171, 95, 194) |
| HSL | hsl(286, 45%, 57%) |
| HSV | hsv(286, 51%, 76%) |
| CMYK | cmyk(11.9%, 51%, 0%, 23.9%) |
| CIE-LAB | lab(52.66, 46.82, -39.36) |
| CIE-LCH | lch(52.66, 61.16, 319.95°) |
| OKLab | oklab(61.14% 0.121 -0.1093) |
| OKLCH | oklch(61.14% 0.163 317.9) |
| XYZ | xyz(30.6231, 20.7385, 53.4183) |
| Luminance | 0.2074 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.36
Mediumorchid
#BA55D3
ΔE00 3.75
Soft Purple
#A66FB5
ΔE00 5.44
Deep Lilac
#966EBD
ΔE00 5.98
Pinky Purple
#C94CBE
ΔE00 6.29
Deep Lavender
#8D5EB7
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB5FC2 #76C25F
analogous
#7A5FC2 #AB5FC2 #C25FA7
triadic
#AB5FC2 #C2AB5F #5FC2AB
tetradic
#AB5FC2 #C27A5F #76C25F #5FA7C2
square
#AB5FC2 #C27A5F #76C25F #5FA7C2
split-complementary
#AB5FC2 #A7C25F #5FC27A
monochromatic
#672E79 #8D3FA5 #AB5FC2 #C28BD3 #DAB8E4
Accessibility & contrast
On white
4.08
#AB5FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#AB5FC2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB5FC2
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB5FC2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB5FC2 | 1.00 | 4.08 | 5.15 | 5.15 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C79C5
Deuteranopia (green-blind)
#6380BF
Tritanopia (blue-blind)
#AB6D88
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #ab5fc2; /* rgb */ color: rgb(171, 95, 194); /* oklch */ color: oklch(61.1% 0.163 317.9);
Tailwind
colors: {
custom: {
50: '#c68fd5',
500: '#ab5fc2',
950: '#000000',
},
}SCSS
$custom: #ab5fc2; $custom-light: #c68fd5; $custom-dark: #000000;
JSON
{
"hex": "#ab5fc2",
"rgb": {
"r": 171,
"g": 95,
"b": 194
},
"hsl": {
"h": 286.061,
"s": 44.796,
"l": 56.667
},
"oklch": {
"l": 0.61142,
"c": 0.16304,
"h": 317.9
},
"luminance": 0.20737
}Semantic roles & 50–950 ramp
primary
#AB5FC2
secondary
#B4D3AA
accent
#D45371
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130D14
muted
#827D83