#8A5EFD#8A5EFD
#8A5EFD is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.225 H 291.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5EFD |
|---|---|
| RGB | rgb(138, 94, 253) |
| HSL | hsl(257, 98%, 68%) |
| HSV | hsv(257, 63%, 99%) |
| CMYK | cmyk(45.5%, 62.8%, 0%, 0.8%) |
| CIE-LAB | lab(52.40, 53.77, -73.30) |
| CIE-LCH | lch(52.40, 90.91, 306.27°) |
| OKLab | oklab(61.27% 0.0806 -0.2096) |
| OKLCH | oklch(61.27% 0.225 291) |
| XYZ | xyz(32.2086, 20.4994, 95.1692) |
| Luminance | 0.2050 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.97
Purpley
#8756E4
ΔE00 4.34
Lighter Purple
#A55AF4
ΔE00 4.93
Lightish Purple
#A552E6
ΔE00 6.49
Mediumpurple
#9370DB
ΔE00 6.94
Light Indigo
#6D5ACF
ΔE00 8.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5EFD #D1FD5E
analogous
#5E81FD #8A5EFD #DA5EFD
triadic
#8A5EFD #FD8A5E #5EFD8A
tetradic
#8A5EFD #FD5E81 #D1FD5E #5EFDDA
square
#8A5EFD #FD5E81 #D1FD5E #5EFDDA
split-complementary
#8A5EFD #FDDA5E #81FD5E
monochromatic
#3F03DE #5E22FC #8A5EFD #B69AFE #E2D7FF
Accessibility & contrast
On white
4.12
#8A5EFD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#8A5EFD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5EFD
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5EFD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5EFD | 1.00 | 4.12 | 5.10 | 5.10 |
| #FFFFFF | 4.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#007AFA
Tritanopia (blue-blind)
#6784A5
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a5efd; /* rgb */ color: rgb(138, 94, 253); /* oklch */ color: oklch(61.3% 0.225 291.0);
Tailwind
colors: {
custom: {
50: '#b48eff',
500: '#8a5efd',
950: '#000000',
},
}SCSS
$custom: #8a5efd; $custom-light: #b48eff; $custom-dark: #000000;
JSON
{
"hex": "#8a5efd",
"rgb": {
"r": 138,
"g": 94,
"b": 253
},
"hsl": {
"h": 256.604,
"s": 97.546,
"l": 68.039
},
"oklch": {
"l": 0.61269,
"c": 0.2246,
"h": 291
},
"luminance": 0.20501
}Semantic roles & 50–950 ramp
primary
#8A5EFD
secondary
#E6F4C3
accent
#E600A6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86