#AB45B7#AB45B7
#AB45B7 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.192 H 323.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #AB45B7 |
|---|---|
| RGB | rgb(171, 69, 183) |
| HSL | hsl(294, 45%, 49%) |
| HSV | hsv(294, 62%, 72%) |
| CMYK | cmyk(6.6%, 62.3%, 0%, 28.2%) |
| CIE-LAB | lab(47.41, 57.26, -41.28) |
| CIE-LCH | lch(47.41, 70.59, 324.21°) |
| OKLab | oklab(57.11% 0.1541 -0.1147) |
| OKLCH | oklch(57.11% 0.192 323.4) |
| XYZ | xyz(27.4691, 16.3346, 46.4966) |
| Luminance | 0.1633 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 4.08
Ugly Purple
#A442A0
ΔE00 4.20
Purply
#983FB2
ΔE00 4.37
Purpley Pink
#C83CB9
ΔE00 5.40
Barney
#AC1DB8
ΔE00 5.52
Mediumorchid
#BA55D3
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB45B7 #51B745
analogous
#7245B7 #AB45B7 #B7458A
triadic
#AB45B7 #B7AB45 #45B7AB
tetradic
#AB45B7 #B77245 #51B745 #458AB7
square
#AB45B7 #B77245 #51B745 #458AB7
split-complementary
#AB45B7 #8AB745 #45B772
monochromatic
#58235E #81348B #AB45B7 #C070C9 #D39DDA
Accessibility & contrast
On white
4.92
#AB45B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#AB45B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB45B7
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB45B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB45B7 | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E69BA
Deuteranopia (green-blind)
#5675B4
Tritanopia (blue-blind)
#AE5678
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #ab45b7; /* rgb */ color: rgb(171, 69, 183); /* oklch */ color: oklch(57.1% 0.192 323.4);
Tailwind
colors: {
custom: {
50: '#c77fcd',
500: '#ab45b7',
950: '#000000',
},
}SCSS
$custom: #ab45b7; $custom-light: #c77fcd; $custom-dark: #000000;
JSON
{
"hex": "#ab45b7",
"rgb": {
"r": 171,
"g": 69,
"b": 183
},
"hsl": {
"h": 293.684,
"s": 45.238,
"l": 49.412
},
"oklch": {
"l": 0.57111,
"c": 0.19212,
"h": 323.4
},
"luminance": 0.16333
}Semantic roles & 50–950 ramp
primary
#AB45B7
secondary
#97C692
accent
#D55361
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130B13
muted
#827C82