#AB4DC7#AB4DC7
#AB4DC7 is a mid, vivid purple. Relative luminance 0.181; OKLCH L 59.0% C 0.196 H 317.7°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #AB4DC7 |
|---|---|
| RGB | rgb(171, 77, 199) |
| HSL | hsl(286, 52%, 54%) |
| HSV | hsv(286, 61%, 78%) |
| CMYK | cmyk(14.1%, 61.3%, 0%, 22%) |
| CIE-LAB | lab(49.61, 56.72, -47.08) |
| CIE-LCH | lch(49.61, 73.71, 320.31°) |
| OKLab | oklab(58.99% 0.1449 -0.1316) |
| OKLCH | oklch(58.99% 0.196 317.7) |
| XYZ | xyz(29.7558, 18.0904, 55.9461) |
| Luminance | 0.1809 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.07
Amethyst
#9B5FC0
ΔE00 4.73
Lightish Purple
#A552E6
ΔE00 5.42
Purply
#983FB2
ΔE00 6.04
Purpley Pink
#C83CB9
ΔE00 6.48
Pinky Purple
#C94CBE
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB4DC7 #69C74D
analogous
#6E4DC7 #AB4DC7 #C74DA6
triadic
#AB4DC7 #C7AB4D #4DC7AB
tetradic
#AB4DC7 #C76E4D #69C74D #4DA6C7
square
#AB4DC7 #C76E4D #69C74D #4DA6C7
split-complementary
#AB4DC7 #A6C74D #4DC76E
monochromatic
#622575 #8A33A3 #AB4DC7 #C17CD6 #D7AAE4
Accessibility & contrast
On white
4.55
#AB4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.62
#AB4DC7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AB4DC7
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB4DC7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AB4DC7 | 1.00 | 4.55 | 4.62 | 4.62 |
| #FFFFFF | 4.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A70CB
Deuteranopia (green-blind)
#5179C4
Tritanopia (blue-blind)
#AA6283
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #ab4dc7; /* rgb */ color: rgb(171, 77, 199); /* oklch */ color: oklch(59.0% 0.196 317.7);
Tailwind
colors: {
custom: {
50: '#c784d8',
500: '#ab4dc7',
950: '#000000',
},
}SCSS
$custom: #ab4dc7; $custom-light: #c784d8; $custom-dark: #000000;
JSON
{
"hex": "#ab4dc7",
"rgb": {
"r": 171,
"g": 77,
"b": 199
},
"hsl": {
"h": 286.23,
"s": 52.137,
"l": 54.118
},
"oklch": {
"l": 0.58988,
"c": 0.19573,
"h": 317.7
},
"luminance": 0.18089
}Semantic roles & 50–950 ramp
primary
#AB4DC7
secondary
#AAD29E
accent
#DC4C6D
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130B14
muted
#827C83