#8A5FC8#8A5FC8
#8A5FC8 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.8% C 0.159 H 300.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5FC8 |
|---|---|
| RGB | rgb(138, 95, 200) |
| HSL | hsl(265, 49%, 58%) |
| HSV | hsv(265, 53%, 78%) |
| CMYK | cmyk(31%, 52.5%, 0%, 21.6%) |
| CIE-LAB | lab(49.20, 39.31, -48.53) |
| CIE-LCH | lch(49.20, 62.45, 309.00°) |
| OKLab | oklab(57.84% 0.0804 -0.1369) |
| OKLCH | oklch(57.84% 0.159 300.4) |
| XYZ | xyz(24.9963, 17.7577, 56.7431) |
| Luminance | 0.1776 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.42
Amethyst
#9B5FC0
ΔE00 4.38
Purpley
#8756E4
ΔE00 4.95
Mediumpurple
#9370DB
ΔE00 5.99
Deep Lilac
#966EBD
ΔE00 6.23
Light Indigo
#6D5ACF
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5FC8 #9DC85F
analogous
#5F69C8 #8A5FC8 #BE5FC8
triadic
#8A5FC8 #C88A5F #5FC88A
tetradic
#8A5FC8 #C85F69 #9DC85F #5FC8BE
square
#8A5FC8 #C85F69 #9DC85F #5FC8BE
split-complementary
#8A5FC8 #C8BE5F #69C85F
monochromatic
#4F2C80 #6B3CAE #8A5FC8 #AB8DD8 #CDBAE7
Accessibility & contrast
On white
4.61
#8A5FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.55
#8A5FC8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5FC8
4.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5FC8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5FC8 | 1.00 | 4.61 | 4.55 | 4.61 |
| #FFFFFF | 4.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3975CC
Deuteranopia (green-blind)
#4574C5
Tritanopia (blue-blind)
#7E738A
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #8a5fc8; /* rgb */ color: rgb(138, 95, 200); /* oklch */ color: oklch(57.8% 0.159 300.4);
Tailwind
colors: {
custom: {
50: '#af8dd9',
500: '#8a5fc8',
950: '#000000',
},
}SCSS
$custom: #8a5fc8; $custom-light: #af8dd9; $custom-dark: #000000;
JSON
{
"hex": "#8a5fc8",
"rgb": {
"r": 138,
"g": 95,
"b": 200
},
"hsl": {
"h": 264.571,
"s": 48.837,
"l": 57.843
},
"oklch": {
"l": 0.57842,
"c": 0.15874,
"h": 300.4
},
"luminance": 0.17758
}Semantic roles & 50–950 ramp
primary
#8A5FC8
secondary
#C5D6AC
accent
#D84FA0
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83