#8B5EF2#8B5EF2
#8B5EF2 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.6% C 0.212 H 293.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #8B5EF2 |
|---|---|
| RGB | rgb(139, 94, 242) |
| HSL | hsl(258, 85%, 66%) |
| HSV | hsv(258, 61%, 95%) |
| CMYK | cmyk(42.6%, 61.2%, 0%, 5.1%) |
| CIE-LAB | lab(51.73, 51.02, -68.25) |
| CIE-LCH | lch(51.73, 85.22, 306.78°) |
| OKLab | oklab(60.57% 0.0827 -0.1948) |
| OKLCH | oklch(60.57% 0.212 293) |
| XYZ | xyz(30.6728, 19.9043, 86.2130) |
| Luminance | 0.1991 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.18
Mediumslateblue
#7B68EE
ΔE00 3.91
Lighter Purple
#A55AF4
ΔE00 4.55
Lightish Purple
#A552E6
ΔE00 5.65
Mediumpurple
#9370DB
ΔE00 6.15
Light Indigo
#6D5ACF
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8B5EF2 #C5F25E
analogous
#5E7BF2 #8B5EF2 #D55EF2
triadic
#8B5EF2 #F28B5E #5EF28B
tetradic
#8B5EF2 #F25E7B #C5F25E #5EF2D5
square
#8B5EF2 #F25E7B #C5F25E #5EF2D5
split-complementary
#8B5EF2 #F2D55E #7BF25E
monochromatic
#4710C6 #6225ED #8B5EF2 #B497F7 #DDCFFB
Accessibility & contrast
On white
4.22
#8B5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#8B5EF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8B5EF2
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8B5EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8B5EF2 | 1.00 | 4.22 | 4.98 | 4.98 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#6E809F
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8b5ef2; /* rgb */ color: rgb(139, 94, 242); /* oklch */ color: oklch(60.6% 0.212 293.0);
Tailwind
colors: {
custom: {
50: '#b38ef7',
500: '#8b5ef2',
950: '#000000',
},
}SCSS
$custom: #8b5ef2; $custom-light: #b38ef7; $custom-dark: #000000;
JSON
{
"hex": "#8b5ef2",
"rgb": {
"r": 139,
"g": 94,
"b": 242
},
"hsl": {
"h": 258.243,
"s": 85.057,
"l": 65.882
},
"oklch": {
"l": 0.60565,
"c": 0.21162,
"h": 293
},
"luminance": 0.19905
}Semantic roles & 50–950 ramp
primary
#8B5EF2
secondary
#DFEEBD
accent
#E2049E
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85