#8A5DEC#8A5DEC
#8A5DEC is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 59.9% C 0.206 H 293.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5DEC |
|---|---|
| RGB | rgb(138, 93, 236) |
| HSL | hsl(259, 79%, 65%) |
| HSV | hsv(259, 61%, 93%) |
| CMYK | cmyk(41.5%, 60.6%, 0%, 7.5%) |
| CIE-LAB | lab(51.02, 49.77, -66.04) |
| CIE-LCH | lch(51.02, 82.69, 307.00°) |
| OKLab | oklab(59.9% 0.0829 -0.1883) |
| OKLCH | oklch(59.9% 0.206 293.8) |
| XYZ | xyz(29.5318, 19.2873, 81.5075) |
| Luminance | 0.1929 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.38
Mediumslateblue
#7B68EE
ΔE00 4.12
Lighter Purple
#A55AF4
ΔE00 4.77
Lightish Purple
#A552E6
ΔE00 5.41
Mediumpurple
#9370DB
ΔE00 6.11
Light Indigo
#6D5ACF
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5DEC #BFEC5D
analogous
#5D78EC #8A5DEC #D25DEC
triadic
#8A5DEC #EC8A5D #5DEC8A
tetradic
#8A5DEC #EC5D78 #BFEC5D #5DECD2
square
#8A5DEC #EC5D78 #BFEC5D #5DECD2
split-complementary
#8A5DEC #ECD25D #78EC5D
monochromatic
#4916B9 #6226E6 #8A5DEC #B294F2 #D9CBF9
Accessibility & contrast
On white
4.32
#8A5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#8A5DEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5DEC
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5DEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5DEC | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#707D9C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #8a5dec; /* rgb */ color: rgb(138, 93, 236); /* oklch */ color: oklch(59.9% 0.206 293.8);
Tailwind
colors: {
custom: {
50: '#b28df3',
500: '#8a5dec',
950: '#000000',
},
}SCSS
$custom: #8a5dec; $custom-light: #b28df3; $custom-dark: #000000;
JSON
{
"hex": "#8a5dec",
"rgb": {
"r": 138,
"g": 93,
"b": 236
},
"hsl": {
"h": 258.881,
"s": 79.006,
"l": 64.51
},
"oklch": {
"l": 0.59898,
"c": 0.20574,
"h": 293.8
},
"luminance": 0.19288
}Semantic roles & 50–950 ramp
primary
#8A5DEC
secondary
#DCEBBA
accent
#DB0A99
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85