#8A5DF2#8A5DF2
#8A5DF2 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.3% C 0.213 H 292.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5DF2 |
|---|---|
| RGB | rgb(138, 93, 242) |
| HSL | hsl(258, 85%, 66%) |
| HSV | hsv(258, 62%, 95%) |
| CMYK | cmyk(43%, 61.6%, 0%, 5.1%) |
| CIE-LAB | lab(51.43, 51.36, -68.74) |
| CIE-LCH | lch(51.43, 85.81, 306.77°) |
| OKLab | oklab(60.33% 0.0825 -0.1962) |
| OKLCH | oklch(60.33% 0.213 292.8) |
| XYZ | xyz(30.4182, 19.6419, 86.1758) |
| Luminance | 0.1964 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.94
Mediumslateblue
#7B68EE
ΔE00 3.97
Lighter Purple
#A55AF4
ΔE00 4.71
Lightish Purple
#A552E6
ΔE00 5.69
Mediumpurple
#9370DB
ΔE00 6.41
Light Indigo
#6D5ACF
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5DF2 #C5F25D
analogous
#5D7AF2 #8A5DF2 #D55DF2
triadic
#8A5DF2 #F28A5D #5DF28A
tetradic
#8A5DF2 #F25D7A #C5F25D #5DF2D5
square
#8A5DF2 #F25D7A #C5F25D #5DF2D5
split-complementary
#8A5DF2 #F2D55D #7AF25D
monochromatic
#4610C5 #6124ED #8A5DF2 #B396F7 #DCCEFB
Accessibility & contrast
On white
4.26
#8A5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#8A5DF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5DF2
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5DF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5DF2 | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#6D7F9F
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8a5df2; /* rgb */ color: rgb(138, 93, 242); /* oklch */ color: oklch(60.3% 0.213 292.8);
Tailwind
colors: {
custom: {
50: '#b38df7',
500: '#8a5df2',
950: '#000000',
},
}SCSS
$custom: #8a5df2; $custom-light: #b38df7; $custom-dark: #000000;
JSON
{
"hex": "#8a5df2",
"rgb": {
"r": 138,
"g": 93,
"b": 242
},
"hsl": {
"h": 258.121,
"s": 85.143,
"l": 65.686
},
"oklch": {
"l": 0.60325,
"c": 0.21289,
"h": 292.8
},
"luminance": 0.19643
}Semantic roles & 50–950 ramp
primary
#8A5DF2
secondary
#DFEEBD
accent
#E2049F
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85