#8A51CF#8A51CF
#8A51CF is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.1% C 0.188 H 301.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #8A51CF |
|---|---|
| RGB | rgb(138, 81, 207) |
| HSL | hsl(267, 57%, 56%) |
| HSV | hsv(267, 61%, 81%) |
| CMYK | cmyk(33.3%, 60.9%, 0%, 18.8%) |
| CIE-LAB | lab(46.70, 48.74, -56.56) |
| CIE-LCH | lch(46.70, 74.66, 310.75°) |
| OKLab | oklab(56.14% 0.098 -0.1604) |
| OKLCH | oklch(56.14% 0.188 301.4) |
| XYZ | xyz(24.6835, 15.7930, 60.7673) |
| Luminance | 0.1579 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.62
Deep Lavender
#8D5EB7
ΔE00 5.73
Lightish Purple
#A552E6
ΔE00 5.79
Light Indigo
#6D5ACF
ΔE00 6.13
Darkorchid
#9932CC
ΔE00 6.16
Amethyst
#9B5FC0
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A51CF #96CF51
analogous
#5157CF #8A51CF #C951CF
triadic
#8A51CF #CF8A51 #51CF8A
tetradic
#8A51CF #CF5157 #96CF51 #51CFC9
square
#8A51CF #CF5157 #96CF51 #51CFC9
split-complementary
#8A51CF #CFC951 #57CF51
monochromatic
#4E2482 #6B31B2 #8A51CF #AA81DC #CBB1E9
Accessibility & contrast
On white
5.05
#8A51CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.16
#8A51CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A51CF
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A51CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A51CF | 1.00 | 5.05 | 4.16 | 5.05 |
| #FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#296ECC
Tritanopia (blue-blind)
#7C6C88
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a51cf; /* rgb */ color: rgb(138, 81, 207); /* oklch */ color: oklch(56.1% 0.188 301.4);
Tailwind
colors: {
custom: {
50: '#b085de',
500: '#8a51cf',
950: '#000000',
},
}SCSS
$custom: #8a51cf; $custom-light: #b085de; $custom-dark: #000000;
JSON
{
"hex": "#8a51cf",
"rgb": {
"r": 138,
"g": 81,
"b": 207
},
"hsl": {
"h": 267.143,
"s": 56.757,
"l": 56.471
},
"oklch": {
"l": 0.56144,
"c": 0.18799,
"h": 301.4
},
"luminance": 0.15793
}Semantic roles & 50–950 ramp
primary
#8A51CF
secondary
#C0D8A4
accent
#E0489B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83