#AB45B2#AB45B2
#AB45B2 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.8% C 0.188 H 325.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #AB45B2 |
|---|---|
| RGB | rgb(171, 69, 178) |
| HSL | hsl(296, 44%, 48%) |
| HSV | hsv(296, 61%, 70%) |
| CMYK | cmyk(3.9%, 61.2%, 0%, 30.2%) |
| CIE-LAB | lab(47.14, 56.34, -38.77) |
| CIE-LCH | lch(47.14, 68.39, 325.46°) |
| OKLab | oklab(56.83% 0.1539 -0.1074) |
| OKLCH | oklch(56.83% 0.188 325.1) |
| XYZ | xyz(26.9580, 16.1301, 43.8043) |
| Luminance | 0.1613 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.37
Medium Purple
#9E43A2
ΔE00 3.45
Purply
#983FB2
ΔE00 4.57
Purpley Pink
#C83CB9
ΔE00 5.25
Barney
#AC1DB8
ΔE00 5.64
Pinky Purple
#C94CBE
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB45B2 #4CB245
analogous
#7445B2 #AB45B2 #B24582
triadic
#AB45B2 #B2AB45 #45B2AB
tetradic
#AB45B2 #B27445 #4CB245 #4582B2
square
#AB45B2 #B27445 #4CB245 #4582B2
split-complementary
#AB45B2 #82B245 #45B274
monochromatic
#56235A #813486 #AB45B2 #C16EC7 #D49AD8
Accessibility & contrast
On white
4.97
#AB45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#AB45B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB45B2
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB45B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB45B2 | 1.00 | 4.97 | 4.23 | 4.97 |
| #FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3368B5
Deuteranopia (green-blind)
#5974AF
Tritanopia (blue-blind)
#AF5475
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #ab45b2; /* rgb */ color: rgb(171, 69, 178); /* oklch */ color: oklch(56.8% 0.188 325.1);
Tailwind
colors: {
custom: {
50: '#c77fc9',
500: '#ab45b2',
950: '#000000',
},
}SCSS
$custom: #ab45b2; $custom-light: #c77fc9; $custom-dark: #000000;
JSON
{
"hex": "#ab45b2",
"rgb": {
"r": 171,
"g": 69,
"b": 178
},
"hsl": {
"h": 296.147,
"s": 44.13,
"l": 48.431
},
"oklch": {
"l": 0.56832,
"c": 0.18766,
"h": 325.1
},
"luminance": 0.16129
}Semantic roles & 50–950 ramp
primary
#AB45B2
secondary
#92C48F
accent
#D4545C
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82