#8A5EF6#8A5EF6
#8A5EF6 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.216 H 292.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5EF6 |
|---|---|
| RGB | rgb(138, 94, 246) |
| HSL | hsl(257, 89%, 67%) |
| HSV | hsv(257, 62%, 96%) |
| CMYK | cmyk(43.9%, 61.8%, 0%, 3.5%) |
| CIE-LAB | lab(51.91, 51.89, -70.20) |
| CIE-LCH | lch(51.91, 87.30, 306.47°) |
| OKLab | oklab(60.76% 0.0812 -0.2005) |
| OKLCH | oklch(60.76% 0.216 292) |
| XYZ | xyz(31.1139, 20.0615, 89.4038) |
| Luminance | 0.2006 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.56
Mediumslateblue
#7B68EE
ΔE00 3.79
Lighter Purple
#A55AF4
ΔE00 4.76
Lightish Purple
#A552E6
ΔE00 6.03
Mediumpurple
#9370DB
ΔE00 6.46
Light Indigo
#6D5ACF
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5EF6 #CAF65E
analogous
#5E7EF6 #8A5EF6 #D65EF6
triadic
#8A5EF6 #F68A5E #5EF68A
tetradic
#8A5EF6 #F65E7E #CAF65E #5EF6D6
square
#8A5EF6 #F65E7E #CAF65E #5EF6D6
split-complementary
#8A5EF6 #F6D65E #7EF65E
monochromatic
#440CCE #6024F3 #8A5EF6 #B498F9 #DED2FC
Accessibility & contrast
On white
4.19
#8A5EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#8A5EF6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5EF6
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5EF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5EF6 | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007EFB
Deuteranopia (green-blind)
#0079F3
Tritanopia (blue-blind)
#6B81A1
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8a5ef6; /* rgb */ color: rgb(138, 94, 246); /* oklch */ color: oklch(60.8% 0.216 292.0);
Tailwind
colors: {
custom: {
50: '#b38efa',
500: '#8a5ef6',
950: '#000000',
},
}SCSS
$custom: #8a5ef6; $custom-light: #b38efa; $custom-dark: #000000;
JSON
{
"hex": "#8a5ef6",
"rgb": {
"r": 138,
"g": 94,
"b": 246
},
"hsl": {
"h": 257.368,
"s": 89.412,
"l": 66.667
},
"oklch": {
"l": 0.60759,
"c": 0.21634,
"h": 292
},
"luminance": 0.20063
}Semantic roles & 50–950 ramp
primary
#8A5EF6
secondary
#E2F0BF
accent
#E600A3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85