#8A5FD1#8A5FD1
#8A5FD1 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.4% C 0.170 H 298.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5FD1 |
|---|---|
| RGB | rgb(138, 95, 209) |
| HSL | hsl(263, 55%, 60%) |
| HSV | hsv(263, 55%, 82%) |
| CMYK | cmyk(34%, 54.5%, 0%, 18%) |
| CIE-LAB | lab(49.73, 41.60, -52.85) |
| CIE-LCH | lch(49.73, 67.25, 308.21°) |
| OKLab | oklab(58.4% 0.0808 -0.1495) |
| OKLCH | oklch(58.4% 0.17 298.4) |
| XYZ | xyz(26.0792, 18.1909, 62.4464) |
| Luminance | 0.1819 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.69
Deep Lavender
#8D5EB7
ΔE00 4.90
Amethyst
#9B5FC0
ΔE00 5.34
Mediumpurple
#9370DB
ΔE00 5.43
Lightish Purple
#A552E6
ΔE00 5.81
Light Indigo
#6D5ACF
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5FD1 #A6D15F
analogous
#5F6DD1 #8A5FD1 #C35FD1
triadic
#8A5FD1 #D18A5F #5FD18A
tetradic
#8A5FD1 #D15F6D #A6D15F #5FD1C3
square
#8A5FD1 #D15F6D #A6D15F #5FD1C3
split-complementary
#8A5FD1 #D1C35F #6DD15F
monochromatic
#4E298D #6936BD #8A5FD1 #AD8FDF #D0BEEC
Accessibility & contrast
On white
4.53
#8A5FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#8A5FD1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5FD1
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5FD1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5FD1 | 1.00 | 4.53 | 4.64 | 4.64 |
| #FFFFFF | 4.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F76D5
Deuteranopia (green-blind)
#3D75CE
Tritanopia (blue-blind)
#7A768F
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #8a5fd1; /* rgb */ color: rgb(138, 95, 209); /* oklch */ color: oklch(58.4% 0.170 298.4);
Tailwind
colors: {
custom: {
50: '#b08ee0',
500: '#8a5fd1',
950: '#000000',
},
}SCSS
$custom: #8a5fd1; $custom-light: #b08ee0; $custom-dark: #000000;
JSON
{
"hex": "#8a5fd1",
"rgb": {
"r": 138,
"g": 95,
"b": 209
},
"hsl": {
"h": 262.632,
"s": 55.34,
"l": 59.608
},
"oklch": {
"l": 0.58401,
"c": 0.16998,
"h": 298.4
},
"luminance": 0.18191
}Semantic roles & 50–950 ramp
primary
#8A5FD1
secondary
#CBDCB0
accent
#DF49A6
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83