#AB2FAF#AB2FAF
#AB2FAF is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.213 H 326.7°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2FAF |
|---|---|
| RGB | rgb(171, 47, 175) |
| HSL | hsl(298, 58%, 44%) |
| HSV | hsv(298, 73%, 69%) |
| CMYK | cmyk(2.3%, 73.1%, 0%, 31.4%) |
| CIE-LAB | lab(43.93, 64.38, -42.11) |
| CIE-LCH | lch(43.93, 76.93, 326.81°) |
| OKLab | oklab(54.46% 0.1777 -0.1169) |
| OKLCH | oklch(54.46% 0.213 326.7) |
| XYZ | xyz(25.5485, 13.7879, 41.8648) |
| Luminance | 0.1379 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Barney
#AC1DB8
ΔE00 2.36
Medium Purple
#9E43A2
ΔE00 3.80
Ugly Purple
#A442A0
ΔE00 3.92
Purply
#983FB2
ΔE00 3.95
Barney Purple
#A00498
ΔE00 6.00
Warm Purple
#952E8F
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2FAF #33AF2F
analogous
#6B2FAF #AB2FAF #AF2F73
triadic
#AB2FAF #AFAB2F #2FAFAB
tetradic
#AB2FAF #AF6B2F #33AF2F #2F73AF
square
#AB2FAF #AF6B2F #33AF2F #2F73AF
split-complementary
#AB2FAF #73AF2F #2FAF6B
monochromatic
#4D154F #7C227F #AB2FAF #CB4CCF #D97CDC
Accessibility & contrast
On white
5.59
#AB2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.76
#AB2FAF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2FAF
5.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2FAF | 1.00 | 5.59 | 3.76 | 5.59 |
| #FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D5EB3
Deuteranopia (green-blind)
#4E6DAC
Tritanopia (blue-blind)
#B0446D
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #ab2faf; /* rgb */ color: rgb(171, 47, 175); /* oklch */ color: oklch(54.5% 0.213 326.7);
Tailwind
colors: {
custom: {
50: '#c874c7',
500: '#ab2faf',
950: '#000000',
},
}SCSS
$custom: #ab2faf; $custom-light: #c874c7; $custom-dark: #000000;
JSON
{
"hex": "#ab2faf",
"rgb": {
"r": 171,
"g": 47,
"b": 175
},
"hsl": {
"h": 298.125,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.5446,
"c": 0.21273,
"h": 326.7
},
"luminance": 0.13786
}Semantic roles & 50–950 ramp
primary
#AB2FAF
secondary
#78C475
accent
#E1474C
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82