#8A4EC8#8A4EC8
#8A4EC8 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.2% C 0.184 H 303.6°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4EC8 |
|---|---|
| RGB | rgb(138, 78, 200) |
| HSL | hsl(270, 53%, 55%) |
| HSV | hsv(270, 61%, 78%) |
| CMYK | cmyk(31%, 61%, 0%, 21.6%) |
| CIE-LAB | lab(45.66, 48.60, -54.20) |
| CIE-LCH | lch(45.66, 72.79, 311.88°) |
| OKLab | oklab(55.25% 0.1019 -0.1535) |
| OKLCH | oklch(55.25% 0.184 303.6) |
| XYZ | xyz(23.6286, 15.0222, 56.2871) |
| Luminance | 0.1502 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.98
Darkorchid
#9932CC
ΔE00 5.34
Deep Lavender
#8D5EB7
ΔE00 5.55
Royal Purple
#7851A9
ΔE00 5.74
Purply
#983FB2
ΔE00 5.96
Amethyst
#9B5FC0
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4EC8 #8CC84E
analogous
#4E4FC8 #8A4EC8 #C74EC8
triadic
#8A4EC8 #C88A4E #4EC88A
tetradic
#8A4EC8 #C84E4F #8CC84E #4EC8C7
square
#8A4EC8 #C84E4F #8CC84E #4EC8C7
split-complementary
#8A4EC8 #C8C74E #4FC84E
monochromatic
#4D2577 #6B33A5 #8A4EC8 #A97DD7 #C8ABE5
Accessibility & contrast
On white
5.24
#8A4EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.00
#8A4EC8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4EC8
5.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4EC8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4EC8 | 1.00 | 5.24 | 4.00 | 5.24 |
| #FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#026BCC
Deuteranopia (green-blind)
#2E6CC5
Tritanopia (blue-blind)
#7E6784
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #8a4ec8; /* rgb */ color: rgb(138, 78, 200); /* oklch */ color: oklch(55.2% 0.184 303.6);
Tailwind
colors: {
custom: {
50: '#b082d9',
500: '#8a4ec8',
950: '#000000',
},
}SCSS
$custom: #8a4ec8; $custom-light: #b082d9; $custom-dark: #000000;
JSON
{
"hex": "#8a4ec8",
"rgb": {
"r": 138,
"g": 78,
"b": 200
},
"hsl": {
"h": 269.508,
"s": 52.586,
"l": 54.51
},
"oklch": {
"l": 0.55246,
"c": 0.1842,
"h": 303.6
},
"luminance": 0.15022
}Semantic roles & 50–950 ramp
primary
#8A4EC8
secondary
#B9D39F
accent
#DC4C95
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83