#8A6EC2#8A6EC2
#8A6EC2 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 60.1% C 0.127 H 297.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6EC2 |
|---|---|
| RGB | rgb(138, 110, 194) |
| HSL | hsl(260, 41%, 60%) |
| HSV | hsv(260, 43%, 76%) |
| CMYK | cmyk(28.9%, 43.3%, 0%, 23.9%) |
| CIE-LAB | lab(52.34, 29.13, -40.10) |
| CIE-LCH | lch(52.34, 49.57, 305.99°) |
| OKLab | oklab(60.09% 0.0593 -0.1123) |
| OKLCH | oklch(60.09% 0.127 297.8) |
| XYZ | xyz(25.7925, 20.4499, 53.6169) |
| Luminance | 0.2045 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 3.37
Mediumpurple
#9370DB
ΔE00 4.36
Deep Lavender
#8D5EB7
ΔE00 5.51
Amethyst
#9B5FC0
ΔE00 6.08
Soft Purple
#A66FB5
ΔE00 8.12
Wisteria
#A87DC2
ΔE00 8.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6EC2 #A6C26E
analogous
#6E7CC2 #8A6EC2 #B46EC2
triadic
#8A6EC2 #C28A6E #6EC28A
tetradic
#8A6EC2 #C26E7C #A6C26E #6EC2B4
square
#8A6EC2 #C26E7C #A6C26E #6EC2B4
split-complementary
#8A6EC2 #C2B46E #7CC26E
monochromatic
#4E3680 #6948AB #8A6EC2 #AD99D4 #D0C4E6
Accessibility & contrast
On white
4.13
#8A6EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.09
#8A6EC2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6EC2
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6EC2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6EC2 | 1.00 | 4.13 | 5.09 | 5.09 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#567DC5
Deuteranopia (green-blind)
#5B7CC0
Tritanopia (blue-blind)
#7F7D8F
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a6ec2; /* rgb */ color: rgb(138, 110, 194); /* oklch */ color: oklch(60.1% 0.127 297.8);
Tailwind
colors: {
custom: {
50: '#ae98d5',
500: '#8a6ec2',
950: '#000000',
},
}SCSS
$custom: #8a6ec2; $custom-light: #ae98d5; $custom-dark: #000000;
JSON
{
"hex": "#8a6ec2",
"rgb": {
"r": 138,
"g": 110,
"b": 194
},
"hsl": {
"h": 260,
"s": 40.777,
"l": 59.608
},
"oklch": {
"l": 0.60087,
"c": 0.127,
"h": 297.8
},
"luminance": 0.2045
}Semantic roles & 50–950 ramp
primary
#8A6EC2
secondary
#CBD6B6
accent
#D157A8
background
#FAF9FD
surface
#F5F2FA
border
#CFCCD3
text
#100D14
muted
#7F7E83