#8A68EA#8A68EA
#8A68EA is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.5% C 0.188 H 292.0°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #8A68EA |
|---|---|
| RGB | rgb(138, 104, 234) |
| HSL | hsl(256, 76%, 66%) |
| HSV | hsv(256, 56%, 92%) |
| CMYK | cmyk(41%, 55.6%, 0%, 8.2%) |
| CIE-LAB | lab(53.22, 43.14, -61.38) |
| CIE-LCH | lch(53.22, 75.03, 305.10°) |
| OKLab | oklab(61.47% 0.0705 -0.1746) |
| OKLCH | oklch(61.47% 0.188 292) |
| XYZ | xyz(30.2788, 21.2435, 80.3310) |
| Luminance | 0.2124 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.84
Mediumpurple
#9370DB
ΔE00 3.86
Purpley
#8756E4
ΔE00 5.10
Lighter Purple
#A55AF4
ΔE00 5.64
Lightish Purple
#A552E6
ΔE00 7.07
Light Indigo
#6D5ACF
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A68EA #C8EA68
analogous
#6887EA #8A68EA #CB68EA
triadic
#8A68EA #EA8A68 #68EA8A
tetradic
#8A68EA #EA6887 #C8EA68 #68EACB
square
#8A68EA #EA6887 #C8EA68 #68EACB
split-complementary
#8A68EA #EACB68 #87EA68
monochromatic
#451ABD #6032E3 #8A68EA #B49EF1 #DDD3F9
Accessibility & contrast
On white
4.00
#8A68EA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.25
#8A68EA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A68EA
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A68EA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A68EA | 1.00 | 4.00 | 5.25 | 5.25 |
| #FFFFFF | 4.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2281EE
Deuteranopia (green-blind)
#2C7CE7
Tritanopia (blue-blind)
#70849F
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8a68ea; /* rgb */ color: rgb(138, 104, 234); /* oklch */ color: oklch(61.5% 0.188 292.0);
Tailwind
colors: {
custom: {
50: '#b294f1',
500: '#8a68ea',
950: '#000000',
},
}SCSS
$custom: #8a68ea; $custom-light: #b294f1; $custom-dark: #000000;
JSON
{
"hex": "#8a68ea",
"rgb": {
"r": 138,
"g": 104,
"b": 234
},
"hsl": {
"h": 255.692,
"s": 75.581,
"l": 66.275
},
"oklch": {
"l": 0.61466,
"c": 0.18828,
"h": 292
},
"luminance": 0.21244
}Semantic roles & 50–950 ramp
primary
#8A68EA
secondary
#E1ECC2
accent
#D80EA3
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85