#AB5CC2#AB5CC2
#AB5CC2 is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.7% C 0.168 H 318.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #AB5CC2 |
|---|---|
| RGB | rgb(171, 92, 194) |
| HSL | hsl(286, 46%, 56%) |
| HSV | hsv(286, 53%, 76%) |
| CMYK | cmyk(11.9%, 52.6%, 0%, 23.9%) |
| CIE-LAB | lab(52.07, 48.37, -40.29) |
| CIE-LCH | lch(52.07, 62.95, 320.21°) |
| OKLab | oklab(60.71% 0.1251 -0.112) |
| OKLCH | oklch(60.71% 0.168 318.2) |
| XYZ | xyz(30.3580, 20.2084, 53.3299) |
| Luminance | 0.2021 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.29
Mediumorchid
#BA55D3
ΔE00 3.50
Pinky Purple
#C94CBE
ΔE00 6.09
Soft Purple
#A66FB5
ΔE00 6.10
Deep Lavender
#8D5EB7
ΔE00 6.18
Deep Lilac
#966EBD
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB5CC2 #73C25C
analogous
#785CC2 #AB5CC2 #C25CA6
triadic
#AB5CC2 #C2AB5C #5CC2AB
tetradic
#AB5CC2 #C2785C #73C25C #5CA6C2
square
#AB5CC2 #C2785C #73C25C #5CA6C2
split-complementary
#AB5CC2 #A6C25C #5CC278
monochromatic
#662D77 #8C3DA4 #AB5CC2 #C289D3 #D9B5E3
Accessibility & contrast
On white
4.17
#AB5CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#AB5CC2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB5CC2
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB5CC2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB5CC2 | 1.00 | 4.17 | 5.04 | 5.04 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4877C5
Deuteranopia (green-blind)
#617FBF
Tritanopia (blue-blind)
#AB6B86
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #ab5cc2; /* rgb */ color: rgb(171, 92, 194); /* oklch */ color: oklch(60.7% 0.168 318.2);
Tailwind
colors: {
custom: {
50: '#c68dd5',
500: '#ab5cc2',
950: '#000000',
},
}SCSS
$custom: #ab5cc2; $custom-light: #c68dd5; $custom-dark: #000000;
JSON
{
"hex": "#ab5cc2",
"rgb": {
"r": 171,
"g": 92,
"b": 194
},
"hsl": {
"h": 286.471,
"s": 45.536,
"l": 56.078
},
"oklch": {
"l": 0.60706,
"c": 0.1679,
"h": 318.2
},
"luminance": 0.20207
}Semantic roles & 50–950 ramp
primary
#AB5CC2
secondary
#B1D2A8
accent
#D55370
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83