#8A4FD7#8A4FD7
#8A4FD7 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.4% C 0.200 H 300.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4FD7 |
|---|---|
| RGB | rgb(138, 79, 215) |
| HSL | hsl(266, 63%, 58%) |
| HSV | hsv(266, 63%, 84%) |
| CMYK | cmyk(35.8%, 63.3%, 0%, 15.7%) |
| CIE-LAB | lab(46.84, 51.77, -60.91) |
| CIE-LCH | lch(46.84, 79.94, 310.36°) |
| OKLab | oklab(56.42% 0.0998 -0.1732) |
| OKLCH | oklch(56.42% 0.2 300) |
| XYZ | xyz(25.5400, 15.9013, 66.0005) |
| Luminance | 0.1590 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.81
Lightish Purple
#A552E6
ΔE00 5.50
Light Indigo
#6D5ACF
ΔE00 6.11
Darkorchid
#9932CC
ΔE00 6.15
Blueviolet
#8A2BE2
ΔE00 6.37
Bluish Purple
#703BE7
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4FD7 #9CD74F
analogous
#4F58D7 #8A4FD7 #CE4FD7
triadic
#8A4FD7 #D78A4F #4FD78A
tetradic
#8A4FD7 #D74F58 #9CD74F #4FD7CE
square
#8A4FD7 #D74F58 #9CD74F #4FD7CE
split-complementary
#8A4FD7 #D7CE4F #58D74F
monochromatic
#4F208C #6B2BBE #8A4FD7 #AB81E2 #CCB3EE
Accessibility & contrast
On white
5.02
#8A4FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#8A4FD7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4FD7
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4FD7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4FD7 | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#116ED4
Tritanopia (blue-blind)
#796D8C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a4fd7; /* rgb */ color: rgb(138, 79, 215); /* oklch */ color: oklch(56.4% 0.200 300.0);
Tailwind
colors: {
custom: {
50: '#b183e4',
500: '#8a4fd7',
950: '#000000',
},
}SCSS
$custom: #8a4fd7; $custom-light: #b183e4; $custom-dark: #000000;
JSON
{
"hex": "#8a4fd7",
"rgb": {
"r": 138,
"g": 79,
"b": 215
},
"hsl": {
"h": 266.029,
"s": 62.963,
"l": 57.647
},
"oklch": {
"l": 0.56416,
"c": 0.19991,
"h": 300
},
"luminance": 0.15902
}Semantic roles & 50–950 ramp
primary
#8A4FD7
secondary
#C5DCA6
accent
#E6429F
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84