#AB45B9#AB45B9
#AB45B9 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.2% C 0.194 H 322.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #AB45B9 |
|---|---|
| RGB | rgb(171, 69, 185) |
| HSL | hsl(293, 46%, 50%) |
| HSV | hsv(293, 63%, 73%) |
| CMYK | cmyk(7.6%, 62.7%, 0%, 27.5%) |
| CIE-LAB | lab(47.52, 57.63, -42.28) |
| CIE-LCH | lch(47.52, 71.47, 323.74°) |
| OKLab | oklab(57.23% 0.1542 -0.1176) |
| OKLCH | oklch(57.23% 0.194 322.7) |
| XYZ | xyz(27.6788, 16.4184, 47.6007) |
| Luminance | 0.1642 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.34
Medium Purple
#9E43A2
ΔE00 4.35
Ugly Purple
#A442A0
ΔE00 4.53
Purpley Pink
#C83CB9
ΔE00 5.50
Barney
#AC1DB8
ΔE00 5.51
Mediumorchid
#BA55D3
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB45B9 #53B945
analogous
#7145B9 #AB45B9 #B9458D
triadic
#AB45B9 #B9AB45 #45B9AB
tetradic
#AB45B9 #B97145 #53B945 #458DB9
square
#AB45B9 #B97145 #53B945 #458DB9
split-complementary
#AB45B9 #8DB945 #45B971
monochromatic
#592460 #82348C #AB45B9 #BF71CA #D39EDB
Accessibility & contrast
On white
4.90
#AB45B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#AB45B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB45B9
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB45B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB45B9 | 1.00 | 4.90 | 4.28 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C69BD
Deuteranopia (green-blind)
#5575B6
Tritanopia (blue-blind)
#AD5779
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #ab45b9; /* rgb */ color: rgb(171, 69, 185); /* oklch */ color: oklch(57.2% 0.194 322.7);
Tailwind
colors: {
custom: {
50: '#c77fce',
500: '#ab45b9',
950: '#000000',
},
}SCSS
$custom: #ab45b9; $custom-light: #c77fce; $custom-dark: #000000;
JSON
{
"hex": "#ab45b9",
"rgb": {
"r": 171,
"g": 69,
"b": 185
},
"hsl": {
"h": 292.759,
"s": 45.669,
"l": 49.804
},
"oklch": {
"l": 0.57225,
"c": 0.19392,
"h": 322.7
},
"luminance": 0.16417
}Semantic roles & 50–950 ramp
primary
#AB45B9
secondary
#99C793
accent
#D55262
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B14
muted
#827C82