#AB309F#AB309F
#AB309F is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.6% C 0.199 H 332.3°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).
Color values
| HEX | #AB309F |
|---|---|
| RGB | rgb(171, 48, 159) |
| HSL | hsl(306, 56%, 43%) |
| HSV | hsv(306, 72%, 67%) |
| CMYK | cmyk(0%, 71.9%, 7%, 32.9%) |
| CIE-LAB | lab(43.18, 61.43, -33.77) |
| CIE-LCH | lch(43.18, 70.10, 331.20°) |
| OKLab | oklab(53.64% 0.1764 -0.0928) |
| OKLCH | oklch(53.64% 0.199 332.3) |
| XYZ | xyz(24.1096, 13.2770, 34.0871) |
| Luminance | 0.1328 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.87
Medium Purple
#9E43A2
ΔE00 3.53
Warm Purple
#952E8F
ΔE00 4.66
Barney
#AC1DB8
ΔE00 4.85
Barney Purple
#A00498
ΔE00 5.33
Purply
#983FB2
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB309F #30AB3C
analogous
#7A30AB #AB309F #AB3061
triadic
#AB309F #9FAB30 #309FAB
tetradic
#AB309F #AB7A30 #30AB3C #3061AB
square
#AB309F #AB7A30 #30AB3C #3061AB
split-complementary
#AB309F #61AB30 #30AB7A
monochromatic
#4B1546 #7B2373 #AB309F #CD4CC0 #DA7BD1
Accessibility & contrast
On white
5.75
#AB309F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#AB309F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB309F
5.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB309F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB309F | 1.00 | 5.75 | 3.66 | 5.75 |
| #FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#295BA2
Deuteranopia (green-blind)
#576C9C
Tritanopia (blue-blind)
#B23D64
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #ab309f; /* rgb */ color: rgb(171, 48, 159); /* oklch */ color: oklch(53.6% 0.199 332.3);
Tailwind
colors: {
custom: {
50: '#c874bc',
500: '#ab309f',
950: '#000000',
},
}SCSS
$custom: #ab309f; $custom-light: #c874bc; $custom-dark: #000000;
JSON
{
"hex": "#ab309f",
"rgb": {
"r": 171,
"g": 48,
"b": 159
},
"hsl": {
"h": 305.854,
"s": 56.164,
"l": 42.941
},
"oklch": {
"l": 0.53642,
"c": 0.19933,
"h": 332.3
},
"luminance": 0.13275
}Semantic roles & 50–950 ramp
primary
#AB309F
secondary
#74C37C
accent
#DF5748
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81