#AB4EB7#AB4EB7
#AB4EB7 is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.2% C 0.179 H 323.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #AB4EB7 |
|---|---|
| RGB | rgb(171, 78, 183) |
| HSL | hsl(293, 42%, 51%) |
| HSV | hsv(293, 57%, 72%) |
| CMYK | cmyk(6.6%, 57.4%, 0%, 28.2%) |
| CIE-LAB | lab(48.92, 53.14, -38.90) |
| CIE-LCH | lch(48.92, 65.85, 323.79°) |
| OKLab | oklab(58.21% 0.1428 -0.1078) |
| OKLCH | oklch(58.21% 0.179 323) |
| XYZ | xyz(28.0654, 17.5270, 46.6953) |
| Luminance | 0.1753 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.96
Medium Purple
#9E43A2
ΔE00 4.98
Purpley Pink
#C83CB9
ΔE00 5.28
Amethyst
#9B5FC0
ΔE00 5.34
Mediumorchid
#BA55D3
ΔE00 5.48
Purply
#983FB2
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB4EB7 #5AB74E
analogous
#764EB7 #AB4EB7 #B74E8E
triadic
#AB4EB7 #B7AB4E #4EB7AB
tetradic
#AB4EB7 #B7764E #5AB74E #4E8EB7
square
#AB4EB7 #B7764E #5AB74E #4E8EB7
split-complementary
#AB4EB7 #8EB74E #4EB776
monochromatic
#5C2863 #843A8E #AB4EB7 #C07AC9 #D4A5DA
Accessibility & contrast
On white
4.66
#AB4EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.51
#AB4EB7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #AB4EB7
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB4EB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB4EB7 | 1.00 | 4.66 | 4.51 | 4.66 |
| #FFFFFF | 4.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3C6DBA
Deuteranopia (green-blind)
#5C78B4
Tritanopia (blue-blind)
#AE5D7B
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #ab4eb7; /* rgb */ color: rgb(171, 78, 183); /* oklch */ color: oklch(58.2% 0.179 323.0);
Tailwind
colors: {
custom: {
50: '#c784cd',
500: '#ab4eb7',
950: '#000000',
},
}SCSS
$custom: #ab4eb7; $custom-light: #c784cd; $custom-dark: #000000;
JSON
{
"hex": "#ab4eb7",
"rgb": {
"r": 171,
"g": 78,
"b": 183
},
"hsl": {
"h": 293.143,
"s": 42.169,
"l": 51.176
},
"oklch": {
"l": 0.58208,
"c": 0.17897,
"h": 323
},
"luminance": 0.17526
}Semantic roles & 50–950 ramp
primary
#AB4EB7
secondary
#9FC899
accent
#D25664
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B13
muted
#827C82