#8A5FB7#8A5FB7
#8A5FB7 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.8% C 0.137 H 305.0°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5FB7 |
|---|---|
| RGB | rgb(138, 95, 183) |
| HSL | hsl(269, 38%, 55%) |
| HSV | hsv(269, 48%, 72%) |
| CMYK | cmyk(24.6%, 48.1%, 0%, 28.2%) |
| CIE-LAB | lab(48.27, 35.09, -40.19) |
| CIE-LCH | lch(48.27, 53.35, 311.13°) |
| OKLab | oklab(56.85% 0.0788 -0.1125) |
| OKLCH | oklch(56.85% 0.137 305) |
| XYZ | xyz(23.1189, 17.0067, 46.8552) |
| Luminance | 0.1701 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 0.75
Amethyst
#9B5FC0
ΔE00 3.66
Deep Lilac
#966EBD
ΔE00 5.32
Royal Purple
#7851A9
ΔE00 5.66
Purpley
#8756E4
ΔE00 7.88
Mediumpurple
#9370DB
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5FB7 #8CB75F
analogous
#5F60B7 #8A5FB7 #B65FB7
triadic
#8A5FB7 #B78A5F #5FB78A
tetradic
#8A5FB7 #B75F60 #8CB75F #5FB7B6
square
#8A5FB7 #B75F60 #8CB75F #5FB7B6
split-complementary
#8A5FB7 #B7B65F #60B75F
monochromatic
#4D306B #6B4396 #8A5FB7 #A989CA #C8B3DD
Accessibility & contrast
On white
4.77
#8A5FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.40
#8A5FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5FB7
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5FB7 | 1.00 | 4.77 | 4.40 | 4.77 |
| #FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4771BA
Deuteranopia (green-blind)
#5273B5
Tritanopia (blue-blind)
#836E82
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #8a5fb7; /* rgb */ color: rgb(138, 95, 183); /* oklch */ color: oklch(56.8% 0.137 305.0);
Tailwind
colors: {
custom: {
50: '#ae8dcd',
500: '#8a5fb7',
950: '#000000',
},
}SCSS
$custom: #8a5fb7; $custom-light: #ae8dcd; $custom-dark: #000000;
JSON
{
"hex": "#8a5fb7",
"rgb": {
"r": 138,
"g": 95,
"b": 183
},
"hsl": {
"h": 269.318,
"s": 37.931,
"l": 54.51
},
"oklch": {
"l": 0.56846,
"c": 0.13735,
"h": 305
},
"luminance": 0.17007
}Semantic roles & 50–950 ramp
primary
#8A5FB7
secondary
#B9CCA6
accent
#CE5A95
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#100C13
muted
#7F7D82