#AB309C#AB309C
#AB309C is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.5% C 0.197 H 333.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).
Color values
| HEX | #AB309C |
|---|---|
| RGB | rgb(171, 48, 156) |
| HSL | hsl(307, 56%, 43%) |
| HSV | hsv(307, 72%, 67%) |
| CMYK | cmyk(0%, 71.9%, 8.8%, 32.9%) |
| CIE-LAB | lab(43.02, 60.96, -32.21) |
| CIE-LCH | lch(43.02, 68.95, 332.15°) |
| OKLab | oklab(53.48% 0.1762 -0.0883) |
| OKLCH | oklch(53.48% 0.197 333.4) |
| XYZ | xyz(23.8524, 13.1741, 32.7327) |
| Luminance | 0.1317 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.99
Medium Purple
#9E43A2
ΔE00 3.77
Warm Purple
#952E8F
ΔE00 4.54
Barney Purple
#A00498
ΔE00 5.37
Barney
#AC1DB8
ΔE00 5.39
Purply
#983FB2
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB309C #30AB3F
analogous
#7C30AB #AB309C #AB305E
triadic
#AB309C #9CAB30 #309CAB
tetradic
#AB309C #AB7C30 #30AB3F #305EAB
square
#AB309C #AB7C30 #30AB3F #305EAB
split-complementary
#AB309C #5EAB30 #30AB7C
monochromatic
#4B1545 #7B2370 #AB309C #CD4CBD #DA7BCE
Accessibility & contrast
On white
5.78
#AB309C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#AB309C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB309C
5.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB309C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB309C | 1.00 | 5.78 | 3.63 | 5.78 |
| #FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C5A9F
Deuteranopia (green-blind)
#596C99
Tritanopia (blue-blind)
#B33C62
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #ab309c; /* rgb */ color: rgb(171, 48, 156); /* oklch */ color: oklch(53.5% 0.197 333.4);
Tailwind
colors: {
custom: {
50: '#c874b9',
500: '#ab309c',
950: '#000000',
},
}SCSS
$custom: #ab309c; $custom-light: #c874b9; $custom-dark: #000000;
JSON
{
"hex": "#ab309c",
"rgb": {
"r": 171,
"g": 48,
"b": 156
},
"hsl": {
"h": 307.317,
"s": 56.164,
"l": 42.941
},
"oklch": {
"l": 0.53482,
"c": 0.1971,
"h": 333.4
},
"luminance": 0.13172
}Semantic roles & 50–950 ramp
primary
#AB309C
secondary
#74C37E
accent
#DF5B48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80