#8540B3#8540B3
#8540B3 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.179 H 309.0°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #8540B3 |
|---|---|
| RGB | rgb(133, 64, 179) |
| HSL | hsl(276, 47%, 48%) |
| HSV | hsv(276, 64%, 70%) |
| CMYK | cmyk(25.7%, 64.2%, 0%, 29.8%) |
| CIE-LAB | lab(41.07, 49.62, -49.36) |
| CIE-LCH | lch(41.07, 69.98, 315.15°) |
| OKLab | oklab(51.35% 0.113 -0.1394) |
| OKLCH | oklch(51.35% 0.179 309) |
| XYZ | xyz(19.6413, 11.9083, 43.9029) |
| Luminance | 0.1191 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.92
Darkorchid
#9932CC
ΔE00 4.73
Royal Purple
#7851A9
ΔE00 5.16
Blueviolet
#8A2BE2
ΔE00 7.00
Darkviolet
#9400D3
ΔE00 7.07
Purple (survey)
#7E1E9C
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8540B3 #6EB340
analogous
#4C40B3 #8540B3 #B340A7
triadic
#8540B3 #B38540 #40B385
tetradic
#8540B3 #B34C40 #6EB340 #40A7B3
square
#8540B3 #B34C40 #6EB340 #40A7B3
split-complementary
#8540B3 #A7B340 #40B34C
monochromatic
#422059 #643086 #8540B3 #A267C9 #BE94D9
Accessibility & contrast
On white
6.21
#8540B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#8540B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8540B3
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8540B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8540B3 | 1.00 | 6.21 | 3.38 | 6.21 |
| #FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#2E62B0
Tritanopia (blue-blind)
#7E5774
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8540b3; /* rgb */ color: rgb(133, 64, 179); /* oklch */ color: oklch(51.3% 0.179 309.0);
Tailwind
colors: {
custom: {
50: '#ac79ca',
500: '#8540b3',
950: '#000000',
},
}SCSS
$custom: #8540b3; $custom-light: #ac79ca; $custom-dark: #000000;
JSON
{
"hex": "#8540b3",
"rgb": {
"r": 133,
"g": 64,
"b": 179
},
"hsl": {
"h": 276,
"s": 47.325,
"l": 47.647
},
"oklch": {
"l": 0.5135,
"c": 0.17944,
"h": 309
},
"luminance": 0.11908
}Semantic roles & 50–950 ramp
primary
#8540B3
secondary
#A2C48A
accent
#D75186
background
#FAF7FC
surface
#F5EEF8
border
#CFC9D1
text
#110913
muted
#807B82