#8A5FD3#8A5FD3
#8A5FD3 is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.5% C 0.172 H 298.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5FD3 |
|---|---|
| RGB | rgb(138, 95, 211) |
| HSL | hsl(262, 57%, 60%) |
| HSV | hsv(262, 55%, 83%) |
| CMYK | cmyk(34.6%, 55%, 0%, 17.3%) |
| CIE-LAB | lab(49.85, 42.11, -53.79) |
| CIE-LCH | lch(49.85, 68.32, 308.06°) |
| OKLab | oklab(58.53% 0.0809 -0.1523) |
| OKLCH | oklch(58.53% 0.172 298) |
| XYZ | xyz(26.3284, 18.2905, 63.7587) |
| Luminance | 0.1829 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.45
Deep Lavender
#8D5EB7
ΔE00 5.22
Mediumpurple
#9370DB
ΔE00 5.35
Amethyst
#9B5FC0
ΔE00 5.57
Lightish Purple
#A552E6
ΔE00 5.70
Light Indigo
#6D5ACF
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5FD3 #A8D35F
analogous
#5F6ED3 #8A5FD3 #C45FD3
triadic
#8A5FD3 #D38A5F #5FD38A
tetradic
#8A5FD3 #D35F6E #A8D35F #5FD3C4
square
#8A5FD3 #D35F6E #A8D35F #5FD3C4
split-complementary
#8A5FD3 #D3C45F #6ED35F
monochromatic
#4E2890 #6835C0 #8A5FD3 #AD8FE0 #D0BFED
Accessibility & contrast
On white
4.51
#8A5FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.66
#8A5FD3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5FD3
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5FD3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5FD3 | 1.00 | 4.51 | 4.66 | 4.66 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C77D7
Deuteranopia (green-blind)
#3B75D0
Tritanopia (blue-blind)
#7A7690
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #8a5fd3; /* rgb */ color: rgb(138, 95, 211); /* oklch */ color: oklch(58.5% 0.172 298.0);
Tailwind
colors: {
custom: {
50: '#b08ee1',
500: '#8a5fd3',
950: '#000000',
},
}SCSS
$custom: #8a5fd3; $custom-light: #b08ee1; $custom-dark: #000000;
JSON
{
"hex": "#8a5fd3",
"rgb": {
"r": 138,
"g": 95,
"b": 211
},
"hsl": {
"h": 262.241,
"s": 56.863,
"l": 60
},
"oklch": {
"l": 0.58528,
"c": 0.17247,
"h": 298
},
"luminance": 0.18291
}Semantic roles & 50–950 ramp
primary
#8A5FD3
secondary
#CDDDB1
accent
#E048A8
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83