#8A6FCB#8A6FCB
#8A6FCB is a mid, vivid violet. Relative luminance 0.211; OKLCH L 60.8% C 0.138 H 295.5°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6FCB |
|---|---|
| RGB | rgb(138, 111, 203) |
| HSL | hsl(258, 47%, 62%) |
| HSV | hsv(258, 45%, 80%) |
| CMYK | cmyk(32%, 45.3%, 0%, 20.4%) |
| CIE-LAB | lab(53.04, 30.86, -44.14) |
| CIE-LCH | lch(53.04, 53.86, 304.96°) |
| OKLab | oklab(60.76% 0.0593 -0.1241) |
| OKLCH | oklch(60.76% 0.138 295.5) |
| XYZ | xyz(26.9425, 21.0835, 59.1384) |
| Luminance | 0.2108 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.93
Deep Lilac
#966EBD
ΔE00 4.56
Deep Lavender
#8D5EB7
ΔE00 6.52
Amethyst
#9B5FC0
ΔE00 6.77
Mediumslateblue
#7B68EE
ΔE00 6.86
Purpley
#8756E4
ΔE00 8.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6FCB #B0CB6F
analogous
#6F82CB #8A6FCB #B86FCB
triadic
#8A6FCB #CB8A6F #6FCB8A
tetradic
#8A6FCB #CB6F82 #B0CB6F #6FCBB8
square
#8A6FCB #CB6F82 #B0CB6F #6FCBB8
split-complementary
#8A6FCB #CBB86F #82CB6F
monochromatic
#4D338D #6643BA #8A6FCB #AF9CDB #D3C9EB
Accessibility & contrast
On white
4.03
#8A6FCB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.22
#8A6FCB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6FCB
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6FCB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6FCB | 1.00 | 4.03 | 5.22 | 5.22 |
| #FFFFFF | 4.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#527FCE
Deuteranopia (green-blind)
#567DC9
Tritanopia (blue-blind)
#7C8093
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8a6fcb; /* rgb */ color: rgb(138, 111, 203); /* oklch */ color: oklch(60.8% 0.138 295.5);
Tailwind
colors: {
custom: {
50: '#af98db',
500: '#8a6fcb',
950: '#000000',
},
}SCSS
$custom: #8a6fcb; $custom-light: #af98db; $custom-dark: #000000;
JSON
{
"hex": "#8a6fcb",
"rgb": {
"r": 138,
"g": 111,
"b": 203
},
"hsl": {
"h": 257.609,
"s": 46.939,
"l": 61.569
},
"oklch": {
"l": 0.60764,
"c": 0.13752,
"h": 295.5
},
"luminance": 0.21084
}Semantic roles & 50–950 ramp
primary
#8A6FCB
secondary
#D2DCBA
accent
#BA2B90
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83