#8F51BC#8F51BC
#8F51BC is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.5% C 0.167 H 308.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #8F51BC |
|---|---|
| RGB | rgb(143, 81, 188) |
| HSL | hsl(275, 44%, 53%) |
| HSV | hsv(275, 57%, 74%) |
| CMYK | cmyk(23.9%, 56.9%, 0%, 26.3%) |
| CIE-LAB | lab(46.12, 45.38, -46.48) |
| CIE-LCH | lch(46.12, 64.96, 314.32°) |
| OKLab | oklab(55.47% 0.1046 -0.1307) |
| OKLCH | oklch(55.47% 0.167 308.7) |
| XYZ | xyz(23.3454, 15.3557, 49.3013) |
| Luminance | 0.1535 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.76
Purply
#983FB2
ΔE00 4.67
Amethyst
#9B5FC0
ΔE00 4.80
Royal Purple
#7851A9
ΔE00 5.15
Darkorchid
#9932CC
ΔE00 6.11
Purpley
#8756E4
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8F51BC #7EBC51
analogous
#5951BC #8F51BC #BC51B4
triadic
#8F51BC #BC8F51 #51BC8F
tetradic
#8F51BC #BC5951 #7EBC51 #51B4BC
square
#8F51BC #BC5951 #7EBC51 #51B4BC
split-complementary
#8F51BC #B4BC51 #51BC59
monochromatic
#4E296A #6F3A96 #8F51BC #AB7DCD #C8A9DE
Accessibility & contrast
On white
5.16
#8F51BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#8F51BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8F51BC
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8F51BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8F51BC | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C6BBF
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#89657F
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8f51bc; /* rgb */ color: rgb(143, 81, 188); /* oklch */ color: oklch(55.5% 0.167 308.7);
Tailwind
colors: {
custom: {
50: '#b384d1',
500: '#8f51bc',
950: '#000000',
},
}SCSS
$custom: #8f51bc; $custom-light: #b384d1; $custom-dark: #000000;
JSON
{
"hex": "#8f51bc",
"rgb": {
"r": 143,
"g": 81,
"b": 188
},
"hsl": {
"h": 274.766,
"s": 44.398,
"l": 52.745
},
"oklch": {
"l": 0.55473,
"c": 0.16741,
"h": 308.7
},
"luminance": 0.15355
}Semantic roles & 50–950 ramp
primary
#8F51BC
secondary
#B1CC9D
accent
#D4548A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82