#8F40BF#8F40BF
#8F40BF is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.195 H 309.9°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).
Color values
| HEX | #8F40BF |
|---|---|
| RGB | rgb(143, 64, 191) |
| HSL | hsl(277, 50%, 50%) |
| HSV | hsv(277, 66%, 75%) |
| CMYK | cmyk(25.1%, 66.5%, 0%, 25.1%) |
| CIE-LAB | lab(43.17, 54.57, -52.96) |
| CIE-LCH | lch(43.17, 76.04, 315.86°) |
| OKLab | oklab(53.39% 0.1253 -0.1496) |
| OKLCH | oklch(53.39% 0.195 309.9) |
| XYZ | xyz(22.5632, 13.2685, 50.6526) |
| Luminance | 0.1327 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.80
Purply
#983FB2
ΔE00 3.24
Blueviolet
#8A2BE2
ΔE00 5.86
Barney
#AC1DB8
ΔE00 6.32
Darkviolet
#9400D3
ΔE00 6.40
Royal Purple
#7851A9
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F40BF #70BF40
analogous
#5040BF #8F40BF #BF40AF
triadic
#8F40BF #BF8F40 #40BF8F
tetradic
#8F40BF #BF5040 #70BF40 #40AFBF
square
#8F40BF #BF5040 #70BF40 #40AFBF
split-complementary
#8F40BF #AFBF40 #40BF50
monochromatic
#4A2163 #6D3191 #8F40BF #AA6ECE #C59CDE
Accessibility & contrast
On white
5.75
#8F40BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.65
#8F40BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F40BF
5.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F40BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F40BF | 1.00 | 5.75 | 3.65 | 5.75 |
| #FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#2D67BC
Tritanopia (blue-blind)
#885A7A
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8f40bf; /* rgb */ color: rgb(143, 64, 191); /* oklch */ color: oklch(53.4% 0.195 309.9);
Tailwind
colors: {
custom: {
50: '#b47ad3',
500: '#8f40bf',
950: '#000000',
},
}SCSS
$custom: #8f40bf; $custom-light: #b47ad3; $custom-dark: #000000;
JSON
{
"hex": "#8f40bf",
"rgb": {
"r": 143,
"g": 64,
"b": 191
},
"hsl": {
"h": 277.323,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.53389,
"c": 0.19517,
"h": 309.9
},
"luminance": 0.13268
}Semantic roles & 50–950 ramp
primary
#8F40BF
secondary
#A6CA91
accent
#D94E83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83