#AB2F99#AB2F99
#AB2F99 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.196 H 334.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2F99 |
|---|---|
| RGB | rgb(171, 47, 153) |
| HSL | hsl(309, 57%, 43%) |
| HSV | hsv(309, 73%, 67%) |
| CMYK | cmyk(0%, 72.5%, 10.5%, 32.9%) |
| CIE-LAB | lab(42.75, 60.85, -30.84) |
| CIE-LCH | lch(42.75, 68.21, 333.13°) |
| OKLab | oklab(53.24% 0.177 -0.0843) |
| OKLCH | oklch(53.24% 0.196 334.5) |
| XYZ | xyz(23.5611, 12.9929, 31.3978) |
| Luminance | 0.1299 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.33
Medium Purple
#9E43A2
ΔE00 4.16
Warm Purple
#952E8F
ΔE00 4.43
Barney Purple
#A00498
ΔE00 5.34
Barney
#AC1DB8
ΔE00 5.87
Purply
#983FB2
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2F99 #2FAB41
analogous
#7F2FAB #AB2F99 #AB2F5B
triadic
#AB2F99 #99AB2F #2F99AB
tetradic
#AB2F99 #AB7F2F #2FAB41 #2F5BAB
square
#AB2F99 #AB7F2F #2FAB41 #2F5BAB
split-complementary
#AB2F99 #5BAB2F #2FAB7F
monochromatic
#4B1543 #7B226E #AB2F99 #CD4ABA #DA7ACC
Accessibility & contrast
On white
5.84
#AB2F99 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#AB2F99 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2F99
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2F99 | 1.00 | 5.84 | 3.60 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D599C
Deuteranopia (green-blind)
#5A6B96
Tritanopia (blue-blind)
#B33961
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ab2f99; /* rgb */ color: rgb(171, 47, 153); /* oklch */ color: oklch(53.2% 0.196 334.5);
Tailwind
colors: {
custom: {
50: '#c874b7',
500: '#ab2f99',
950: '#000000',
},
}SCSS
$custom: #ab2f99; $custom-light: #c874b7; $custom-dark: #000000;
JSON
{
"hex": "#ab2f99",
"rgb": {
"r": 171,
"g": 47,
"b": 153
},
"hsl": {
"h": 308.71,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.53237,
"c": 0.19605,
"h": 334.5
},
"luminance": 0.12991
}Semantic roles & 50–950 ramp
primary
#AB2F99
secondary
#73C37F
accent
#E05E48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80