#8A5FE2#8A5FE2
#8A5FE2 is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.5% C 0.191 H 295.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5FE2 |
|---|---|
| RGB | rgb(138, 95, 226) |
| HSL | hsl(260, 69%, 63%) |
| HSV | hsv(260, 58%, 89%) |
| CMYK | cmyk(38.9%, 58%, 0%, 11.4%) |
| CIE-LAB | lab(50.78, 46.03, -60.81) |
| CIE-LCH | lch(50.78, 76.26, 307.12°) |
| OKLab | oklab(59.51% 0.081 -0.1729) |
| OKLCH | oklch(59.51% 0.191 295.1) |
| XYZ | xyz(28.2973, 19.0781, 74.1283) |
| Luminance | 0.1908 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.46
Mediumslateblue
#7B68EE
ΔE00 4.37
Lighter Purple
#A55AF4
ΔE00 5.15
Mediumpurple
#9370DB
ΔE00 5.30
Lightish Purple
#A552E6
ΔE00 5.39
Light Indigo
#6D5ACF
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5FE2 #B7E25F
analogous
#5F75E2 #8A5FE2 #CC5FE2
triadic
#8A5FE2 #E28A5F #5FE28A
tetradic
#8A5FE2 #E25F75 #B7E25F #5FE2CC
square
#8A5FE2 #E25F75 #B7E25F #5FE2CC
split-complementary
#8A5FE2 #E2CC5F #75E25F
monochromatic
#4C1EA8 #642BD9 #8A5FE2 #B093EB #D6C7F5
Accessibility & contrast
On white
4.36
#8A5FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#8A5FE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5FE2
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5FE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5FE2 | 1.00 | 4.36 | 4.82 | 4.82 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B7AE6
Deuteranopia (green-blind)
#2577DF
Tritanopia (blue-blind)
#747B97
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #8a5fe2; /* rgb */ color: rgb(138, 95, 226); /* oklch */ color: oklch(59.5% 0.191 295.1);
Tailwind
colors: {
custom: {
50: '#b18eec',
500: '#8a5fe2',
950: '#000000',
},
}SCSS
$custom: #8a5fe2; $custom-light: #b18eec; $custom-dark: #000000;
JSON
{
"hex": "#8a5fe2",
"rgb": {
"r": 138,
"g": 95,
"b": 226
},
"hsl": {
"h": 259.695,
"s": 69.312,
"l": 62.941
},
"oklch": {
"l": 0.59512,
"c": 0.19094,
"h": 295.1
},
"luminance": 0.19079
}Semantic roles & 50–950 ramp
primary
#8A5FE2
secondary
#D6E6B7
accent
#D11493
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84