#8A5FFC#8A5FFC
#8A5FFC is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.3% C 0.222 H 291.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5FFC |
|---|---|
| RGB | rgb(138, 95, 252) |
| HSL | hsl(256, 96%, 68%) |
| HSV | hsv(256, 62%, 99%) |
| CMYK | cmyk(45.2%, 62.3%, 0%, 1.2%) |
| CIE-LAB | lab(52.53, 52.97, -72.53) |
| CIE-LCH | lch(52.53, 89.82, 306.14°) |
| OKLab | oklab(61.34% 0.0797 -0.2074) |
| OKLCH | oklch(61.34% 0.222 291) |
| XYZ | xyz(32.1392, 20.6148, 94.3623) |
| Luminance | 0.2062 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 3.79
Purpley
#8756E4
ΔE00 4.40
Lighter Purple
#A55AF4
ΔE00 4.94
Lightish Purple
#A552E6
ΔE00 6.53
Mediumpurple
#9370DB
ΔE00 6.72
Light Indigo
#6D5ACF
ΔE00 8.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5FFC #D1FC5F
analogous
#5F82FC #8A5FFC #D85FFC
triadic
#8A5FFC #FC8A5F #5FFC8A
tetradic
#8A5FFC #FC5F82 #D1FC5F #5FFCD8
square
#8A5FFC #FC5F82 #D1FC5F #5FFCD8
split-complementary
#8A5FFC #FCD85F #82FC5F
monochromatic
#3F04DC #5E23FB #8A5FFC #B69BFD #E2D7FE
Accessibility & contrast
On white
4.10
#8A5FFC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#8A5FFC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5FFC
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5FFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5FFC | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#007AF9
Tritanopia (blue-blind)
#6784A5
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #8a5ffc; /* rgb */ color: rgb(138, 95, 252); /* oklch */ color: oklch(61.3% 0.222 291.0);
Tailwind
colors: {
custom: {
50: '#b48efe',
500: '#8a5ffc',
950: '#000000',
},
}SCSS
$custom: #8a5ffc; $custom-light: #b48efe; $custom-dark: #000000;
JSON
{
"hex": "#8a5ffc",
"rgb": {
"r": 138,
"g": 95,
"b": 252
},
"hsl": {
"h": 256.433,
"s": 96.319,
"l": 68.039
},
"oklch": {
"l": 0.6134,
"c": 0.22218,
"h": 291
},
"luminance": 0.20616
}Semantic roles & 50–950 ramp
primary
#8A5FFC
secondary
#E6F3C3
accent
#E600A7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86