#8A4FD6#8A4FD6
#8A4FD6 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.199 H 300.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4FD6 |
|---|---|
| RGB | rgb(138, 79, 214) |
| HSL | hsl(266, 62%, 57%) |
| HSV | hsv(266, 63%, 84%) |
| CMYK | cmyk(35.5%, 63.1%, 0%, 16.1%) |
| CIE-LAB | lab(46.78, 51.52, -60.45) |
| CIE-LCH | lch(46.78, 79.42, 310.44°) |
| OKLab | oklab(56.35% 0.0999 -0.1718) |
| OKLCH | oklch(56.35% 0.199 300.2) |
| XYZ | xyz(25.4119, 15.8501, 65.3259) |
| Luminance | 0.1585 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.94
Lightish Purple
#A552E6
ΔE00 5.54
Darkorchid
#9932CC
ΔE00 6.09
Light Indigo
#6D5ACF
ΔE00 6.12
Blueviolet
#8A2BE2
ΔE00 6.39
Slate Blue
#6A5ACD
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4FD6 #9BD64F
analogous
#4F58D6 #8A4FD6 #CD4FD6
triadic
#8A4FD6 #D68A4F #4FD68A
tetradic
#8A4FD6 #D64F58 #9BD64F #4FD6CD
square
#8A4FD6 #D64F58 #9BD64F #4FD6CD
split-complementary
#8A4FD6 #D6CD4F #58D64F
monochromatic
#4F208A #6B2CBC #8A4FD6 #AB81E2 #CCB2ED
Accessibility & contrast
On white
5.04
#8A4FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#8A4FD6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4FD6
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4FD6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4FD6 | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#156ED3
Tritanopia (blue-blind)
#796D8B
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a4fd6; /* rgb */ color: rgb(138, 79, 214); /* oklch */ color: oklch(56.3% 0.199 300.2);
Tailwind
colors: {
custom: {
50: '#b183e3',
500: '#8a4fd6',
950: '#000000',
},
}SCSS
$custom: #8a4fd6; $custom-light: #b183e3; $custom-dark: #000000;
JSON
{
"hex": "#8a4fd6",
"rgb": {
"r": 138,
"g": 79,
"b": 214
},
"hsl": {
"h": 266.222,
"s": 62.212,
"l": 57.451
},
"oklch": {
"l": 0.56346,
"c": 0.19877,
"h": 300.2
},
"luminance": 0.1585
}Semantic roles & 50–950 ramp
primary
#8A4FD6
secondary
#C4DCA5
accent
#E5439E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84