#8A5DF1#8A5DF1
#8A5DF1 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.3% C 0.212 H 293.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5DF1 |
|---|---|
| RGB | rgb(138, 93, 241) |
| HSL | hsl(258, 84%, 65%) |
| HSV | hsv(258, 61%, 95%) |
| CMYK | cmyk(42.7%, 61.4%, 0%, 5.5%) |
| CIE-LAB | lab(51.36, 51.09, -68.29) |
| CIE-LCH | lch(51.36, 85.29, 306.80°) |
| OKLab | oklab(60.25% 0.0826 -0.1949) |
| OKLCH | oklch(60.25% 0.212 293) |
| XYZ | xyz(30.2684, 19.5820, 85.3869) |
| Luminance | 0.1958 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.84
Mediumslateblue
#7B68EE
ΔE00 3.98
Lighter Purple
#A55AF4
ΔE00 4.72
Lightish Purple
#A552E6
ΔE00 5.64
Mediumpurple
#9370DB
ΔE00 6.35
Light Indigo
#6D5ACF
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5DF1 #C4F15D
analogous
#5D7AF1 #8A5DF1 #D45DF1
triadic
#8A5DF1 #F18A5D #5DF18A
tetradic
#8A5DF1 #F15D7A #C4F15D #5DF1D4
square
#8A5DF1 #F15D7A #C4F15D #5DF1D4
split-complementary
#8A5DF1 #F1D45D #7AF15D
monochromatic
#4711C3 #6125EC #8A5DF1 #B395F6 #DBCEFB
Accessibility & contrast
On white
4.27
#8A5DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.92
#8A5DF1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5DF1
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5DF1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5DF1 | 1.00 | 4.27 | 4.92 | 4.92 |
| #FFFFFF | 4.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CF6
Deuteranopia (green-blind)
#0078EE
Tritanopia (blue-blind)
#6D7F9E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #8a5df1; /* rgb */ color: rgb(138, 93, 241); /* oklch */ color: oklch(60.3% 0.212 293.0);
Tailwind
colors: {
custom: {
50: '#b38df7',
500: '#8a5df1',
950: '#000000',
},
}SCSS
$custom: #8a5df1; $custom-light: #b38df7; $custom-dark: #000000;
JSON
{
"hex": "#8a5df1",
"rgb": {
"r": 138,
"g": 93,
"b": 241
},
"hsl": {
"h": 258.243,
"s": 84.091,
"l": 65.49
},
"oklch": {
"l": 0.60253,
"c": 0.2117,
"h": 293
},
"luminance": 0.19583
}Semantic roles & 50–950 ramp
primary
#8A5DF1
secondary
#DFEEBC
accent
#E1059E
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85