#AB2F98#AB2F98
#AB2F98 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.195 H 334.9°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2F98 |
|---|---|
| RGB | rgb(171, 47, 152) |
| HSL | hsl(309, 57%, 43%) |
| HSV | hsv(309, 73%, 67%) |
| CMYK | cmyk(0%, 72.5%, 11.1%, 32.9%) |
| CIE-LAB | lab(42.70, 60.70, -30.31) |
| CIE-LCH | lch(42.70, 67.84, 333.46°) |
| OKLab | oklab(53.19% 0.1769 -0.0828) |
| OKLCH | oklch(53.19% 0.195 334.9) |
| XYZ | xyz(23.4789, 12.9600, 30.9646) |
| Luminance | 0.1296 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.42
Medium Purple
#9E43A2
ΔE00 4.28
Warm Purple
#952E8F
ΔE00 4.43
Barney Purple
#A00498
ΔE00 5.39
Barney
#AC1DB8
ΔE00 6.06
Purply
#983FB2
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2F98 #2FAB42
analogous
#802FAB #AB2F98 #AB2F5A
triadic
#AB2F98 #98AB2F #2F98AB
tetradic
#AB2F98 #AB802F #2FAB42 #2F5AAB
square
#AB2F98 #AB802F #2FAB42 #2F5AAB
split-complementary
#AB2F98 #5AAB2F #2FAB80
monochromatic
#4B1543 #7B226D #AB2F98 #CD4AB9 #DA7ACC
Accessibility & contrast
On white
5.85
#AB2F98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#AB2F98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2F98
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2F98 | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#B33960
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #ab2f98; /* rgb */ color: rgb(171, 47, 152); /* oklch */ color: oklch(53.2% 0.195 334.9);
Tailwind
colors: {
custom: {
50: '#c874b6',
500: '#ab2f98',
950: '#000000',
},
}SCSS
$custom: #ab2f98; $custom-light: #c874b6; $custom-dark: #000000;
JSON
{
"hex": "#ab2f98",
"rgb": {
"r": 171,
"g": 47,
"b": 152
},
"hsl": {
"h": 309.194,
"s": 56.881,
"l": 42.745
},
"oklch": {
"l": 0.53185,
"c": 0.19532,
"h": 334.9
},
"luminance": 0.12958
}Semantic roles & 50–950 ramp
primary
#AB2F98
secondary
#73C37F
accent
#E05F48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80