#8A5EF2#8A5EF2
#8A5EF2 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.5% C 0.212 H 292.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5EF2 |
|---|---|
| RGB | rgb(138, 94, 242) |
| HSL | hsl(258, 85%, 66%) |
| HSV | hsv(258, 61%, 95%) |
| CMYK | cmyk(43%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(51.63, 50.82, -68.42) |
| CIE-LCH | lch(51.63, 85.23, 306.61°) |
| OKLab | oklab(60.47% 0.0814 -0.1953) |
| OKLCH | oklch(60.47% 0.212 292.6) |
| XYZ | xyz(30.5066, 19.8186, 86.2052) |
| Luminance | 0.1982 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.14
Mediumslateblue
#7B68EE
ΔE00 3.79
Lighter Purple
#A55AF4
ΔE00 4.72
Lightish Purple
#A552E6
ΔE00 5.80
Mediumpurple
#9370DB
ΔE00 6.22
Light Indigo
#6D5ACF
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5EF2 #C6F25E
analogous
#5E7CF2 #8A5EF2 #D45EF2
triadic
#8A5EF2 #F28A5E #5EF28A
tetradic
#8A5EF2 #F25E7C #C6F25E #5EF2D4
square
#8A5EF2 #F25E7C #C6F25E #5EF2D4
split-complementary
#8A5EF2 #F2D45E #7CF25E
monochromatic
#4610C6 #6125ED #8A5EF2 #B397F7 #DCCFFB
Accessibility & contrast
On white
4.23
#8A5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.96
#8A5EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5EF2
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5EF2 | 1.00 | 4.23 | 4.96 | 4.96 |
| #FFFFFF | 4.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#6D809F
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8a5ef2; /* rgb */ color: rgb(138, 94, 242); /* oklch */ color: oklch(60.5% 0.212 292.6);
Tailwind
colors: {
custom: {
50: '#b38ef7',
500: '#8a5ef2',
950: '#000000',
},
}SCSS
$custom: #8a5ef2; $custom-light: #b38ef7; $custom-dark: #000000;
JSON
{
"hex": "#8a5ef2",
"rgb": {
"r": 138,
"g": 94,
"b": 242
},
"hsl": {
"h": 257.838,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.60471,
"c": 0.21159,
"h": 292.6
},
"luminance": 0.19819
}Semantic roles & 50–950 ramp
primary
#8A5EF2
secondary
#E0EEBD
accent
#E204A0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85