#AB4FBC#AB4FBC
#AB4FBC is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.6% C 0.182 H 321.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #AB4FBC |
|---|---|
| RGB | rgb(171, 79, 188) |
| HSL | hsl(291, 45%, 52%) |
| HSV | hsv(291, 58%, 74%) |
| CMYK | cmyk(9%, 58%, 0%, 26.3%) |
| CIE-LAB | lab(49.35, 53.62, -41.12) |
| CIE-LCH | lch(49.35, 67.57, 322.52°) |
| OKLab | oklab(58.61% 0.1419 -0.1143) |
| OKLCH | oklch(58.61% 0.182 321.2) |
| XYZ | xyz(28.6666, 17.8821, 49.5088) |
| Luminance | 0.1788 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.75
Amethyst
#9B5FC0
ΔE00 4.79
Purpley Pink
#C83CB9
ΔE00 5.58
Medium Purple
#9E43A2
ΔE00 5.70
Ugly Purple
#A442A0
ΔE00 5.80
Purply
#983FB2
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB4FBC #60BC4F
analogous
#744FBC #AB4FBC #BC4F97
triadic
#AB4FBC #BCAB4F #4FBCAB
tetradic
#AB4FBC #BC744F #60BC4F #4F97BC
square
#AB4FBC #BC744F #60BC4F #4F97BC
split-complementary
#AB4FBC #97BC4F #4FBC74
monochromatic
#5F2869 #873995 #AB4FBC #C07BCD #D5A8DE
Accessibility & contrast
On white
4.59
#AB4FBC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.58
#AB4FBC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #AB4FBC
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB4FBC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB4FBC | 1.00 | 4.59 | 4.58 | 4.59 |
| #FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#396FBF
Deuteranopia (green-blind)
#5A79B9
Tritanopia (blue-blind)
#AD5F7E
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #ab4fbc; /* rgb */ color: rgb(171, 79, 188); /* oklch */ color: oklch(58.6% 0.182 321.2);
Tailwind
colors: {
custom: {
50: '#c785d0',
500: '#ab4fbc',
950: '#000000',
},
}SCSS
$custom: #ab4fbc; $custom-light: #c785d0; $custom-dark: #000000;
JSON
{
"hex": "#ab4fbc",
"rgb": {
"r": 171,
"g": 79,
"b": 188
},
"hsl": {
"h": 290.642,
"s": 44.856,
"l": 52.353
},
"oklch": {
"l": 0.58611,
"c": 0.18221,
"h": 321.2
},
"luminance": 0.17881
}Semantic roles & 50–950 ramp
primary
#AB4FBC
secondary
#A3CB9C
accent
#D55367
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82