#AB40C2#AB40C2
#AB40C2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.209 H 320.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #AB40C2 |
|---|---|
| RGB | rgb(171, 64, 194) |
| HSL | hsl(289, 52%, 51%) |
| HSV | hsv(289, 67%, 76%) |
| CMYK | cmyk(11.9%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(47.26, 61.44, -47.92) |
| CIE-LCH | lch(47.26, 77.92, 322.05°) |
| OKLab | oklab(57.2% 0.16 -0.134) |
| OKLCH | oklch(57.2% 0.209 320) |
| XYZ | xyz(28.3644, 16.2211, 52.6654) |
| Luminance | 0.1622 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.13
Barney
#AC1DB8
ΔE00 4.89
Darkorchid
#9932CC
ΔE00 5.36
Medium Purple
#9E43A2
ΔE00 5.53
Ugly Purple
#A442A0
ΔE00 5.93
Vibrant Purple
#AD03DE
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB40C2 #57C240
analogous
#6A40C2 #AB40C2 #C24098
triadic
#AB40C2 #C2AB40 #40C2AB
tetradic
#AB40C2 #C26A40 #57C240 #4098C2
square
#AB40C2 #C26A40 #57C240 #4098C2
split-complementary
#AB40C2 #98C240 #40C26A
monochromatic
#5A2167 #833095 #AB40C2 #BF6ED1 #D49DE0
Accessibility & contrast
On white
4.95
#AB40C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#AB40C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB40C2
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB40C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB40C2 | 1.00 | 4.95 | 4.24 | 4.95 |
| #FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1169C6
Deuteranopia (green-blind)
#4B74BF
Tritanopia (blue-blind)
#AC577C
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #ab40c2; /* rgb */ color: rgb(171, 64, 194); /* oklch */ color: oklch(57.2% 0.209 320.0);
Tailwind
colors: {
custom: {
50: '#c77dd5',
500: '#ab40c2',
950: '#000000',
},
}SCSS
$custom: #ab40c2; $custom-light: #c77dd5; $custom-dark: #000000;
JSON
{
"hex": "#ab40c2",
"rgb": {
"r": 171,
"g": 64,
"b": 194
},
"hsl": {
"h": 289.385,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.57204,
"c": 0.20866,
"h": 320
},
"luminance": 0.1622
}Semantic roles & 50–950 ramp
primary
#AB40C2
secondary
#9CCC92
accent
#DB4D66
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83