#873AB3#873AB3
#873AB3 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.9% C 0.188 H 310.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).
Color values
| HEX | #873AB3 |
|---|---|
| RGB | rgb(135, 58, 179) |
| HSL | hsl(278, 51%, 46%) |
| HSV | hsv(278, 68%, 70%) |
| CMYK | cmyk(24.6%, 67.6%, 0%, 29.8%) |
| CIE-LAB | lab(40.30, 52.93, -50.58) |
| CIE-LCH | lch(40.30, 73.22, 316.30°) |
| OKLab | oklab(50.85% 0.1226 -0.1429) |
| OKLCH | oklch(50.85% 0.188 310.6) |
| XYZ | xyz(19.6399, 11.4321, 43.8111) |
| Luminance | 0.1143 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.90
Darkorchid
#9932CC
ΔE00 4.35
Darkviolet
#9400D3
ΔE00 6.17
Purple (survey)
#7E1E9C
ΔE00 6.23
Royal Purple
#7851A9
ΔE00 6.31
Barney
#AC1DB8
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#873AB3 #66B33A
analogous
#4B3AB3 #873AB3 #B33AA3
triadic
#873AB3 #B3873A #3AB387
tetradic
#873AB3 #B34B3A #66B33A #3AA3B3
square
#873AB3 #B34B3A #66B33A #3AA3B3
split-complementary
#873AB3 #A3B33A #3AB34B
monochromatic
#411C57 #642B85 #873AB3 #A45FCB #BE8DDA
Accessibility & contrast
On white
6.39
#873AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#873AB3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #873AB3
6.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##873AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##873AB3 | 1.00 | 6.39 | 3.29 | 6.39 |
| #FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#2960B0
Tritanopia (blue-blind)
#815372
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #873ab3; /* rgb */ color: rgb(135, 58, 179); /* oklch */ color: oklch(50.9% 0.188 310.6);
Tailwind
colors: {
custom: {
50: '#ae76ca',
500: '#873ab3',
950: '#000000',
},
}SCSS
$custom: #873ab3; $custom-light: #ae76ca; $custom-dark: #000000;
JSON
{
"hex": "#873ab3",
"rgb": {
"r": 135,
"g": 58,
"b": 179
},
"hsl": {
"h": 278.182,
"s": 51.055,
"l": 46.471
},
"oklch": {
"l": 0.50851,
"c": 0.18826,
"h": 310.6
},
"luminance": 0.11432
}Semantic roles & 50–950 ramp
primary
#873AB3
secondary
#9CC584
accent
#DB4D81
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82