#8A5FDF#8A5FDF
#8A5FDF is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.3% C 0.187 H 295.6°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5FDF |
|---|---|
| RGB | rgb(138, 95, 223) |
| HSL | hsl(260, 67%, 62%) |
| HSV | hsv(260, 57%, 87%) |
| CMYK | cmyk(38.1%, 57.4%, 0%, 12.5%) |
| CIE-LAB | lab(50.59, 45.24, -59.42) |
| CIE-LCH | lch(50.59, 74.68, 307.28°) |
| OKLab | oklab(59.31% 0.081 -0.1688) |
| OKLCH | oklch(59.31% 0.187 295.6) |
| XYZ | xyz(27.8893, 18.9149, 71.9793) |
| Luminance | 0.1892 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.51
Mediumslateblue
#7B68EE
ΔE00 4.64
Mediumpurple
#9370DB
ΔE00 5.24
Lighter Purple
#A55AF4
ΔE00 5.32
Lightish Purple
#A552E6
ΔE00 5.38
Light Indigo
#6D5ACF
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5FDF #B4DF5F
analogous
#5F74DF #8A5FDF #CA5FDF
triadic
#8A5FDF #DF8A5F #5FDF8A
tetradic
#8A5FDF #DF5F74 #B4DF5F #5FDFCA
square
#8A5FDF #DF5F74 #B4DF5F #5FDFCA
split-complementary
#8A5FDF #DFCA5F #74DF5F
monochromatic
#4C21A3 #652CD5 #8A5FDF #AF92E9 #D5C5F3
Accessibility & contrast
On white
4.39
#8A5FDF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.78
#8A5FDF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5FDF
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5FDF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5FDF | 1.00 | 4.39 | 4.78 | 4.78 |
| #FFFFFF | 4.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1679E3
Deuteranopia (green-blind)
#2A77DC
Tritanopia (blue-blind)
#757A96
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #8a5fdf; /* rgb */ color: rgb(138, 95, 223); /* oklch */ color: oklch(59.3% 0.187 295.6);
Tailwind
colors: {
custom: {
50: '#b18eea',
500: '#8a5fdf',
950: '#000000',
},
}SCSS
$custom: #8a5fdf; $custom-light: #b18eea; $custom-dark: #000000;
JSON
{
"hex": "#8a5fdf",
"rgb": {
"r": 138,
"g": 95,
"b": 223
},
"hsl": {
"h": 260.156,
"s": 66.667,
"l": 62.353
},
"oklch": {
"l": 0.59311,
"c": 0.18727,
"h": 295.6
},
"luminance": 0.18915
}Semantic roles & 50–950 ramp
primary
#8A5FDF
secondary
#D5E4B6
accent
#CF1791
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84