#8A6AE2#8A6AE2
#8A6AE2 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.3% C 0.175 H 292.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6AE2 |
|---|---|
| RGB | rgb(138, 106, 226) |
| HSL | hsl(256, 67%, 65%) |
| HSV | hsv(256, 53%, 89%) |
| CMYK | cmyk(38.9%, 53.1%, 0%, 11.4%) |
| CIE-LAB | lab(53.17, 39.85, -56.96) |
| CIE-LCH | lch(53.17, 69.52, 304.97°) |
| OKLab | oklab(61.28% 0.0679 -0.1616) |
| OKLCH | oklch(61.28% 0.175 292.8) |
| XYZ | xyz(29.3591, 21.2016, 74.4822) |
| Luminance | 0.2120 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.87
Mediumslateblue
#7B68EE
ΔE00 3.44
Purpley
#8756E4
ΔE00 5.52
Lighter Purple
#A55AF4
ΔE00 6.18
Lightish Purple
#A552E6
ΔE00 7.36
Light Indigo
#6D5ACF
ΔE00 7.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6AE2 #C2E26A
analogous
#6A86E2 #8A6AE2 #C66AE2
triadic
#8A6AE2 #E28A6A #6AE28A
tetradic
#8A6AE2 #E26A86 #C2E26A #6AE2C6
square
#8A6AE2 #E26A86 #C2E26A #6AE2C6
split-complementary
#8A6AE2 #E2C66A #86E26A
monochromatic
#4822AF #6237D8 #8A6AE2 #B29DEC #DAD0F6
Accessibility & contrast
On white
4.01
#8A6AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.24
#8A6AE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6AE2
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6AE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6AE2 | 1.00 | 4.01 | 5.24 | 5.24 |
| #FFFFFF | 4.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3481E6
Deuteranopia (green-blind)
#3B7DDF
Tritanopia (blue-blind)
#73839C
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8a6ae2; /* rgb */ color: rgb(138, 106, 226); /* oklch */ color: oklch(61.3% 0.175 292.8);
Tailwind
colors: {
custom: {
50: '#b195ec',
500: '#8a6ae2',
950: '#000000',
},
}SCSS
$custom: #8a6ae2; $custom-light: #b195ec; $custom-dark: #000000;
JSON
{
"hex": "#8a6ae2",
"rgb": {
"r": 138,
"g": 106,
"b": 226
},
"hsl": {
"h": 256,
"s": 67.416,
"l": 65.098
},
"oklch": {
"l": 0.61275,
"c": 0.17529,
"h": 292.8
},
"luminance": 0.21202
}Semantic roles & 50–950 ramp
primary
#8A6AE2
secondary
#DDE8C0
accent
#CF169E
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110D16
muted
#807E84