#8A5BF2#8A5BF2
#8A5BF2 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.0% C 0.215 H 293.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BF2 |
|---|---|
| RGB | rgb(138, 91, 242) |
| HSL | hsl(259, 85%, 65%) |
| HSV | hsv(259, 62%, 95%) |
| CMYK | cmyk(43%, 62.4%, 0%, 5.1%) |
| CIE-LAB | lab(51.03, 52.43, -69.39) |
| CIE-LCH | lch(51.03, 86.97, 307.07°) |
| OKLab | oklab(60.04% 0.0846 -0.1981) |
| OKLCH | oklch(60.04% 0.215 293.1) |
| XYZ | xyz(30.2450, 19.2954, 86.1180) |
| Luminance | 0.1930 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.58
Mediumslateblue
#7B68EE
ΔE00 4.35
Lighter Purple
#A55AF4
ΔE00 4.74
Lightish Purple
#A552E6
ΔE00 5.51
Mediumpurple
#9370DB
ΔE00 6.80
Light Indigo
#6D5ACF
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BF2 #C3F25B
analogous
#5B78F2 #8A5BF2 #D55BF2
triadic
#8A5BF2 #F28A5B #5BF28A
tetradic
#8A5BF2 #F25B78 #C3F25B #5BF2D5
square
#8A5BF2 #F25B78 #C3F25B #5BF2D5
split-complementary
#8A5BF2 #F2D55B #78F25B
monochromatic
#470FC3 #6222EE #8A5BF2 #B294F6 #DBCCFB
Accessibility & contrast
On white
4.32
#8A5BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#8A5BF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5BF2
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5BF2 | 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)
#007BF7
Deuteranopia (green-blind)
#0077EF
Tritanopia (blue-blind)
#6D7E9E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #8a5bf2; /* rgb */ color: rgb(138, 91, 242); /* oklch */ color: oklch(60.0% 0.215 293.1);
Tailwind
colors: {
custom: {
50: '#b38cf7',
500: '#8a5bf2',
950: '#000000',
},
}SCSS
$custom: #8a5bf2; $custom-light: #b38cf7; $custom-dark: #000000;
JSON
{
"hex": "#8a5bf2",
"rgb": {
"r": 138,
"g": 91,
"b": 242
},
"hsl": {
"h": 258.675,
"s": 85.311,
"l": 65.294
},
"oklch": {
"l": 0.60035,
"c": 0.21546,
"h": 293.1
},
"luminance": 0.19296
}Semantic roles & 50–950 ramp
primary
#8A5BF2
secondary
#DEEEBB
accent
#E2049D
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85