#AB2F9D#AB2F9D
#AB2F9D is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.4% C 0.199 H 333.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2F9D |
|---|---|
| RGB | rgb(171, 47, 157) |
| HSL | hsl(307, 57%, 43%) |
| HSV | hsv(307, 73%, 67%) |
| CMYK | cmyk(0%, 72.5%, 8.2%, 32.9%) |
| CIE-LAB | lab(42.95, 61.46, -32.92) |
| CIE-LCH | lch(42.95, 69.73, 331.82°) |
| OKLab | oklab(53.45% 0.1773 -0.0903) |
| OKLCH | oklch(53.45% 0.199 333) |
| XYZ | xyz(23.8970, 13.1273, 33.1670) |
| Luminance | 0.1313 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.06
Medium Purple
#9E43A2
ΔE00 3.77
Warm Purple
#952E8F
ΔE00 4.51
Barney
#AC1DB8
ΔE00 5.14
Barney Purple
#A00498
ΔE00 5.21
Purply
#983FB2
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2F9D #2FAB3D
analogous
#7B2FAB #AB2F9D #AB2F5F
triadic
#AB2F9D #9DAB2F #2F9DAB
tetradic
#AB2F9D #AB7B2F #2FAB3D #2F5FAB
square
#AB2F9D #AB7B2F #2FAB3D #2F5FAB
split-complementary
#AB2F9D #5FAB2F #2FAB7B
monochromatic
#4B1545 #7B2271 #AB2F9D #CD4ABE #DA7AD0
Accessibility & contrast
On white
5.79
#AB2F9D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#AB2F9D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2F9D
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2F9D | 1.00 | 5.79 | 3.63 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A5AA0
Deuteranopia (green-blind)
#586C9A
Tritanopia (blue-blind)
#B33B63
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ab2f9d; /* rgb */ color: rgb(171, 47, 157); /* oklch */ color: oklch(53.4% 0.199 333.0);
Tailwind
colors: {
custom: {
50: '#c874ba',
500: '#ab2f9d',
950: '#000000',
},
}SCSS
$custom: #ab2f9d; $custom-light: #c874ba; $custom-dark: #000000;
JSON
{
"hex": "#ab2f9d",
"rgb": {
"r": 171,
"g": 47,
"b": 157
},
"hsl": {
"h": 306.774,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.53448,
"c": 0.19898,
"h": 333
},
"luminance": 0.13125
}Semantic roles & 50–950 ramp
primary
#AB2F9D
secondary
#73C37C
accent
#E05948
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80